Postgresql: password authentication failed for user “postgres”

前端 未结 19 1769
时光取名叫无心
时光取名叫无心 2020-11-22 13:34

I have installed PostgreSQL 8.4, Postgres client and Pgadmin 3. Authentication failed for user \"postgres\" for both console client and Pgadmin. I have typed user as \"postg

19条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-22 14:14

    When you install postgresql no password is set for user postgres, you have to explicitly set it on Unix by using the command:

    sudo passwd postgres
    

    It will ask your sudo password and then promt you for new postgres user password. Source

提交回复
热议问题