Pgadmin3 New Server error authentication failed for user "Postgres" workaround

Source: Internet
Author: User
Tags postgres database

Transferred from:

New server with pgadmin3 error Peer authentication failed for user "Postgres"

Find the answer on StackOverflow, this error occurs because:

Peer authentication is the default configuration, and if your computer user name is the same as your Postgres database name, then this error does not occur and you do not need to set a password for your database.

There is also a MD5 authentication, which requires a password.

My Computer username and my database name are inconsistent, so I need to change the peer authentication to MD5 authentication and then set the password for the database.

Where to change?


Execute command

Locate the following line:

Local all Postgres peer

Change into

Local all Postgres MD5

Then restart PostgreSQL server

sudo service postgresql restart

Pgadmin3 New Server error authentication failed for user "Postgres" workaround

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.