[英]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.