Peer authentication failed for user "user" error

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Peer authentication failed for user "user" error

Post by gautamz07 »

I was just reading through thishttp://workshop.pgrouting.org/chapters/ ... #pgrouting tutorial and basically when i tried to executed the following command:

Code: Select all

psql -U user
I get the following error :

Code: Select all

Peer authentication failed for user "user".
Any idea why ?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Peer authentication failed for user "user" error

Post by requinix »

Did you update your pg_hba.conf as they say in section 3.1? And then restart PostgreSQL?
Post Reply