📜  如何重置忘记的 postgresql 密码 - 无论代码示例

📅  最后修改于: 2022-03-11 14:55:52.748000             🧑  作者: Mango

代码示例1
# sudo -u postgres psql
could not change directory to "/root"
psql (9.1.11)
Type "help" for help.

postgres=# \password
Enter new password:
Enter it again:
postgres=# \q