password authentication failed for user "XXX"

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

$ su postgres

$ psql -h localhost

ALTER USER postgres with password 'YourNewPassword';



作者:轴儿
链接:https://www.jianshu.com/p/350efc8c9673
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
posted @ 2020-09-22 09:40  疯子110  阅读(1530)  评论(0编辑  收藏  举报