![](/img/trans.png)
[英]password authentication failed for user "root", postgresSQL and docker
[英]How to find user name and password for PostgresSQL on mac?
如何在 Mac 上查找 PostgresSQL 的用户名和密码? 我不记得我设置了密码和用户名。 如何在mac上找到默认的用户名和密码?
不使用密码登录:
sudo -u postgres psql postgres
要知道用户名
\du
重置密码:
ALTER USER user_name WITH PASSWORD 'new_password';
将user_name
替换为您通过\du
命令找到的用户名
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.