Step1: 切换用户为postgres
sudo su postgres
Step2: 用postgres连接postgreSQL
psql -U postgres
Step3: 修改postgres密码
alter user postgres with password 'new password';
现在postgres用户就拥有了新密码
以上就是PostgreSQL 在Ubuntu下如何修改postgres默认密码的详细内容,更多关于PostgreSQL 在Ubuntu下如何修改postgres默认密码的资料请关注九品源码其它相关文章!