password authentication failed for user "XXX"

postgresql连接时,报错。分析是可能是忘记密码,重新设置用户密码:

$ su postgres

$ psql -h localhost

ALTER USER postgres with password 'YourNewPassword';



作者:轴儿
链接:https://www.jianshu.com/p/350efc8c9673
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
原文地址:https://www.cnblogs.com/telwanggs/p/13710278.html