Navicat Premium 12 连接 PostgreSQL 时出现以下情况:
FATA:no pg_hba.conf entry for host "192.168.113.1",user "postgres",database "postgres",SSL off
FATA:主机“192.168.113.1”没有pg_hba.conf条目,用户“postgres”,数据库“postgres”,SSL关闭
解决办法:
编辑pg_hba.conf配置文件:
将11替换成你所安装的版本:
vim /var/lib/pgsql/11/data/pg_hba.conf
在里面添加:
host all all 0.0.0.0/0 md5
重启服务器:
systemctl restart postgresql-11