为什么 pgAdmin III 不能连接到 Postgres?
Why can't pgAdmin III connect to Postgres?
我向 posgresql (amanda
) 添加了一个新用户,它与我的 linux 系统用户相同。在控制台,我可以很好地打开 psql
-- 我不需要密码,因为我已经通过 amanda
的身份验证。当我尝试在没有密码的情况下设置 pgAdmin III 时,我得到:
An error has occurred:
01:18:47 PM: Error: Error connecting to the server: fe_sendauth: no password supplied
如果我提供我的系统密码,我会收到密码错误:
An error has occurred:
01:15:30 PM: Error: Error connecting to the server: FATAL: password authentication failed for user "amanda"
FATAL: password authentication failed for user "amanda"
如何让 pgAdmin3 作为 amanda
与 postgres 对话?
不是真正的解决方案,而是一种解决方法:
连接为命令行并因此更新您的密码:
ALTER USER amanda WITH PASSWORD 'your_new_password';
我向 posgresql (amanda
) 添加了一个新用户,它与我的 linux 系统用户相同。在控制台,我可以很好地打开 psql
-- 我不需要密码,因为我已经通过 amanda
的身份验证。当我尝试在没有密码的情况下设置 pgAdmin III 时,我得到:
An error has occurred:
01:18:47 PM: Error: Error connecting to the server: fe_sendauth: no password supplied
如果我提供我的系统密码,我会收到密码错误:
An error has occurred:
01:15:30 PM: Error: Error connecting to the server: FATAL: password authentication failed for user "amanda"
FATAL: password authentication failed for user "amanda"
如何让 pgAdmin3 作为 amanda
与 postgres 对话?
不是真正的解决方案,而是一种解决方法: 连接为命令行并因此更新您的密码:
ALTER USER amanda WITH PASSWORD 'your_new_password';