# 登录PostgreSQL sudo -u postgres psql # 修改登录PostgreSQL密码 ALTER USER postgres WITH PASSWORD 'postgres'; # 退出PostgreSQL客户端 \q
# 删除用户postgres的密码 sudo passwd -d postgres # 设置用户postgres的密码 sudo -u postgres passwd # 系统提示输入新的密码
本文地址:https://www.0558.la/article/b92e86e456b12f570e4b.html