我向 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 与 postgres 对话amanda
?
这都是@localhost。我读到这个:
但是那里的答案讨论了信任身份验证。我阅读手册的auth 方法部分表明我想要 pgAdmin3 使用 Ident Auth。