shell脚本操作postgresql改密码

https://cloud.tencent.com/developer/ask/59833

 

sudo -u postgres psql -U postgres -d postgres -c "alter user postgres with password 'password';"

sudo -u postgres psql -c "ALTER USER postgres WITH PASSWORD '123456';"
posted @ 2021-04-07 17:21  Billy.rao  阅读(561)  评论(0编辑  收藏  举报