我知道,这个问题已经多次问过,但我没有找到解决这一问题的办法!
I downloaded PostgreSQL 13 with pg Admin 4 and when I open it for the first time after installation it asks me for the master password that I was asked to set during installation, after I give the master password and this gets accepted I try to connect to the default server created during the installation: "PostgreSQL 13".
此时此刻,它请我给我一个我不知道什么地方的用户“邮政”密码。 具体地说,请进入用户站连接服务器的密码——“PostgreSQL 13”。
我已经尝试了我设法在互联网上发现的所有“过失”密码,但错误总是一样:
FATAL: 用户“海报”的密码认证失败
我也试图不添加任何带有错误的密码:
fe_sendauth:无密码供应
I don t know what to do. In PostgreSQL 13 the authentication method is encrypted via scram-sha-256
. I already tried to set the method to trust, restart the mac, and open pg Admin 4 that keeps asking me for the password to access the server.
我也尝试使用指挥线工具,但最终会遇到同样的错误。
最后,这正是我的<代码>pg_hba.conf。 looks:
# TYPE DATABASE USER ADDRESS METHOD
# "local" is for Unix domain socket connections only
local all all scram-sha-256
# IPv4 local connections:
host all all 127.0.0.1/32 scram-sha-256
# IPv6 local connections:
host all all ::1/128 scram-sha-256
# Allow replication connections from localhost, by a user with the
# replication privilege.
local replication all scram-sha-256
host replication all 127.0.0.1/32 scram-sha-256
host replication all ::1/128 scram-sha-256
PS. I ve also tried to uninstall PostgreSQL 13, deleting the postgres user and re-download and re-install everything... nothing changed.
如果有人能够帮助我成为我的行凶者,我会事先感谢!