dropdb: could not connect to database template1: FATAL: no pg_hba.conf entry for host "210.40.16.99

dropdb: could not connect to database template1: FATAL: no pg_hba.conf entry for host “210.40.16.99”, user “yuanwsh”, database “template1”, SSL off

使用Postgresql跑程序时,遇到了这个问题,这个问题是因为你pg_hba.conf里的ipv4配置没有配置正确,可以到pg_hba.conf,IPV4处把127.0.0.1/32修改成你服务器或者你自己的ip地址即可解决。
如图所示

猜你喜欢

转载自blog.csdn.net/sinat_16723255/article/details/86231469