2013-03-23 58 views
1

當連接到與正確的密碼pgadmin數據庫的Postgres,我發現了以下錯誤:如何解鎖超級用戶「Postgres的帳戶在PostgreSQL的

'Error connecting to the server:FATAL password authentication failed with user 'postgres'. 

hba改變方法'trust'而不是'md5'後配置文件,然後鍵入:

ALTER USER POSTGRES WITH PASSWORD 'newpassword' 

後再次改變方法爲MD5然後試圖連接到數據庫

Howerver成功地更改密碼(我在加密模式檢查,這是罰款),但得到了同樣的問題:

'Error connecting to the server:FATAL password authentication failed with user 'postgres'. 

請給我建議,如果有此問題的任何其他的解決辦法。

+1

僅供參考 - 這個問題是關於[ServerFault](http://serverfault.com) – dsh 2013-03-23 05:38:31

+0

的主題什麼是您的pg_hba.conf文件中的條目? – dsh 2013-03-23 05:41:29

回答

0

這向我建議,要麼是對外部來源(不常見)進行身份驗證,要麼就是你被pgAdmin中的一個bug設置爲無效日期(更常見)。

試試這個:

ALTER USER postgres VALID UNTIL 'infinity'; 

或者你可以設置有效期至價值的東西,如果你想在一定時間段後鎖定帳戶較爲有限。

+0

非常感謝您的迴應,它工作得很好,我可以在沒有任何問題的情況下登錄pgadmin。 – Patrick 2013-03-23 07:31:34

相關問題