FATA:no pg_hba.conf entry for host "192.168.113.1",user "postgres",database "postgres",SSL off

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关闭

FATA:no pg_hba.conf entry for host

解决办法:

编辑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

官方说明:http://wiki.postgresql.org/wiki/9.1第十九章

你可能感兴趣的:(PostgreSQL)