PostgreSQL 13致命:用户“的密码身份验证失败”;博士后;
我在安装过程中输入了正确的密码,出现如下身份验证错误 阅读类似的问题和答案,但找不到版本13的有效解决方案 尝试了空密码和所有默认密码。 有人能帮忙吗PostgreSQL 13致命:用户“的密码身份验证失败”;博士后;,postgresql,psql,postgresql-13,Postgresql,Psql,Postgresql 13,我在安装过程中输入了正确的密码,出现如下身份验证错误 阅读类似的问题和答案,但找不到版本13的有效解决方案 尝试了空密码和所有默认密码。 有人能帮忙吗 Unable to connect to server: could not initiate GSSAPI security context: The operation or option is not available could not initiate GSSAPI security context: Credential for
Unable to connect to server:
could not initiate GSSAPI security context: The operation or option is not available
could not initiate GSSAPI security context: Credential for asked mech-type mech not found in the credential handle
FATAL: password authentication failed for user "postgres"
我的/Library/PostgreSQL/13/data/pg_hba.conf
:
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all peer
# IPv4 local connections:
host all all 127.0.0.1/32 peer
# IPv6 local connections:
host all all ::1/128 peer
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all peer
host replication all 127.0.0.1/32 peer
host replication all ::1/128 peer
在我重新启动我的计算机后,它会通过我上载的配置得到解决。在我重新启动我的计算机后,它会通过我上载的配置得到解决。连接请求到底是什么,您使用的是哪个客户端?PostgreSQL日志中属于失败连接尝试的那一行是什么?@LaurenzAlbe我正在尝试通过pgadmin4连接服务器。psql登录也无法工作,错误为“psql:错误:无法连接到服务器:致命:用户密码身份验证失败”postgres“仅供参考,尝试将
pg_hba.conf
中的方法scram-sha-256
更改为trust
--不起作用,更改为peer
--不起作用。连接请求是什么,您使用的是哪个客户端?”?PostgreSQL日志中属于失败连接尝试的那一行是什么?@LaurenzAlbe我正在尝试通过pgadmin4连接服务器。psql登录也不工作,出现错误“psql:错误:无法连接到服务器:致命:用户“postgres”的密码身份验证失败。仅供参考,尝试将pg_hba.conf
中的方法scram-sha-256
更改为trust
--不工作,更改为peer
--不工作。