我是这种类型的数据库的新手,我尝试通过指定 psql 的命令行连接到它,然后输入空白密码。我收到上述错误(在这个问题的标题中)。
我不知道默认密码是什么。
pg_hba 文件:
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 DIMA 127.0.0.1/32 trust
host replication DIMA ::1/128 trust
postgresql.config
listen_addresses = '*' # what IP address(es) to listen on;
# comma-separated list of addresses;
# defaults to 'localhost', '*' = all
# (change requires restart)
port = 5432 # (change requires restart)
我以这种方式重新启动服务器:
C:\metasploit\postgresql\bin\pg_ctl -D "C:\metasploit\postgresql\myData" -l logfile start
我想要的只是进入数据库并更改我的密码。并且最好进入 PgAdmin-III(以 GUI 形式)