1
我剛剛在brew install postgresql
的Macbook上安裝了postgresql
。然後我嘗試psql
,但它需要密碼,然後顯示psql: FATAL: password authentication failed for user "<myname>"
。爲什麼mac上的postgresql在全新安裝後問我密碼?
我還沒有設置任何東西,並輸入我的mac密碼什麼都不做。我現在應該怎麼做?
hm。對於本地主機,它應該默認使用同級身份驗證,而不是md5 ...'pg_hba.conf'中的內容?(''sudo find/-name pg_hba.conf') –