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

QGIS中新建PostGIS连接时,报错“FATA:no pg_hba.conf entry for host "192.168.37.4",user "postgres",database "mapbox",SSL off”。

解决方法:

1、找到pg_hba.conf配置文件(C:\Program Files\PostgreSQL\11\data\pg_hba.conf),在其中添加

host all all 0.0.0.0/0 md5

2、重启postgres服务,即可。

转载于:https://www.jianshu.com/p/461f133893b1

猜你喜欢

转载自blog.csdn.net/weixin_34362875/article/details/91238759