password authentication failed for user "XXX"

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

$ su postgres

$ psql -h localhost

ALTER USER postgres with password ‘YourNewPassword’;

    原文作者:轴儿
    原文地址: https://www.jianshu.com/p/350efc8c9673
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞