# 进入docker容器
sudo docker exec -it my_postgres bash
# 运行psql命令
psql
# 或
psql -U postgres -d postgres -h 127.0.0.1 -p 5432
# 修改
ALTER USER postgres WITH PASSWORD 'NewPassword';
\q
postgresql忘记密码了,重置postgres用户密码的方式(docker下)
最新推荐文章于 2024-05-20 15:03:54 发布
关键词由CSDN通过智能技术生成