【发布时间】:2011-12-03 12:03:34
【问题描述】:
我已安装 PostgreSQL 8.4、Postgres 客户端和 Pgadmin 3。控制台客户端和 Pgadmin 的用户“postgres”的身份验证失败。我输入了用户为“postgres”和密码“postgres”,因为它以前工作过。但现在身份验证失败。我之前做过几次没有这个问题。我该怎么办?会发生什么?
psql -U postgres -h localhost -W
Password for user postgres:
psql: FATAL: password authentication failed for user "postgres"
FATAL: password authentication failed for user "postgres"
【问题讨论】:
-
在我的情况下连接失败是因为password is too complex ...
-
请务必通读本页。我必须做几件事才能使它正常工作。首先是
ALTERstep,然后是editing mypg_hba.conffile,然后是restarting postgres。 -
还要确保您没有运行两个 Postgres 实例:一个在 Windows 上,一个在 Docker 上。 Docker 没有向我报告该端口已被占用。因此,该工具连接到 Windows 机器 Postgres,而在 Docker postgers 中,一切都很好。
标签: postgresql