通过pgAdmin访问Postgres数据库时出现此错误。
我已经将方法设置为“信任”
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
# Allow replication connections from localhost, by a user with the
# replication privilege.
host replication all 127.0.0.1/32 trust
host replication all ::1/128 trust
答案 0 :(得分:0)
在端口(8888)上,您似乎正在尝试连接到Web服务器。默认情况下,Postgres在端口5432上运行,如果没有,则通常在54 **范围内。验证端口Postgres在哪个端口上运行。我将从postgresql.conf中设置的端口开始。您没有说您正在使用什么操作系统,所以我无法提供命令来检查监听端口。