Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5556

postgres ident authentication failed on windows

$
0
0

To fix this error open PostgreSQL client authentication configuration file :…\PostgreSQL\data\pg_hba.conf

This file controls:

  1. Which hosts are allowed to connect
  2. How clients are authenticated
  3. Which PostgreSQL user names they can use
  4. Which databases they can access

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:

local	all	all	        trust
host	all	127.0.0.1/32	trust

Save and close the file. Restart Postgresql server:

Enjoy…

Your opinions, comments and suggestions are important to keep the page updated and interesting. 
Facebook Twitter Email Reddit Stumbleupon

Viewing all articles
Browse latest Browse all 5556