您好,我正在尝试运行发送给我的网站,但执行此操作后出现此错误
connect to PostgreSQL server: FATAL: no pg_hba.conf entry for host "4X.XXX.XX.XXX", user "userXXX", database "dbXXX", SSL off in C:\xampp\htdocs\xmastool\index.php on line 37
谷歌搜索之后,它说我只需要在pg_hba.conf文件中为该特定用户添加一个条目。这是我的pg_hba.conf文件。
# TYPE DATABASE USER ADDRESS METHOD
# IPv4 local connections:
local dbXXX userXXX md5
host dbXXX userXXX XX.XXX.XXX.XXX md5
host all all 127.0.0.1/32 md5
# IPv6 local connections:
host all all ::1/128 md5
# Allow replication connections from localhost, by a user with the
# replication privilege.
#host replication postgres 127.0.0.1/32 md5
#host replication postgres ::1/128 md5
但是这样做之后,错误仍然存在。我多次重新启动了XAMPP服务器,但未显示任何更改。提前致谢
SELECT pg_reload_conf()
。