簡體   English   中英

為什么`psql postgres` 說我的密碼錯誤?

[英]Why does `psql postgres` say I have the wrong password?

我在 Mac 上。 我用brew postgresql安裝了brew postgresql

當我輸入psql postgres ,它提供

Password for user [myuser]:

當我給它密碼時,它說

psql: FATAL: password authentication failed for user "[myuser]"

但我知道我給了它正確的密碼。

我遇到了同樣的問題,事實證明,當我運行 psql shell 時,它默認運行版本 12,當我轉到文件位置(右鍵單擊 psql shell 並查看位置)時,我轉到了版本 13(我使用的版本)安裝,將其替換為您安裝的版本)文件並運行 psql shell 並且密碼有效,我希望這會有所幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM