Files
chill_notes/数据库/PostgreSQL_Postgresql 帐号密码修改方法.md
2026-04-21 17:42:54 +08:00

4 lines
267 B
Markdown
Executable File
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
==#su postgres== ======-bash-3.2$psql - postgres== ======postgres=#alter user postgres with password 'new password';== ==////====一定要加分号执行========postgres=#\q==
su - postgres
psql -U postgresalter user postgres with encrypted password '1';