如何在 mac 上查找 PostgresSQL 的用戶名和密碼?我不記得我設定了密碼和用戶名。如何在mac上找到默認用戶名和密碼?
uj5u.com熱心網友回復:
要不使用密碼登錄:
sudo -u postgres psql postgres
知道用戶名
\du
要重置密碼:
ALTER USER user_name WITH PASSWORD 'new_password';
替換user_name為您通過\du命令找到的用戶名
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/427991.html
標籤:PostgreSQL 苹果系统
上一篇:自制水龍頭和木桶的問題
