Postgresql: password authentication failed for user “postgres”

前端 未结 19 1789
时光取名叫无心
时光取名叫无心 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:04

    As a rule of thumb: YOU SHOULD NEVER EVER SET A PASSWORD FOR THE POSTGRES USER.

    If you need a superuser access from pgAdmin, make another superuser. That way, if the credentials for that superuser is compromised, you can always ssh into the actual database host and manually delete the superuser using

    sudo -u postgres -c "DROP ROLE superuser;"
    

提交回复
热议问题