您好我正在尝试运行一个发送给我的网站但是在这样做之后出现了这个错误
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
在Googling之后,它说我只需要在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服务器几次,但没有出现任何变化.
提前致谢