繁体   English   中英

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说话的Postgres的amanda

不是真正的解决方案,而是一种解决方法:以命令行连接并更新您的密码,因此:

ALTER USER amanda WITH PASSWORD 'your_new_password';

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM