11/18/2013

psql: FATAL: Ident authentication failed for user "username" Error and Solution

"By default Postgresql uses IDENT-based authentication. All you have to do is allow username and password based authentication for your network or webserver. IDENT will never allow you to login via -U and -W options. Append following to allow login via localhost only:" (from http://www.cyberciti.biz/faq/psql-fatal-ident-authentication-failed-for-user/)

To access database via tcp connect with username/password, comment this line:
#host    all         all         127.0.0.1/32          ident

No comments:

Post a Comment