On Wed, 2006-12-06 at 01:17, swati desai wrote: > i am trying to connect php to postgresql but im getting warning FATAL: > IDENT authentication failed... for user and pg_connect("dbname=swati > user=xyz password=abc"); > > and hence cant work > plz tell me wat is d problem Your pg_hba.conf file isn't setup how you need it to be. Take a look here: http://www.postgresql.org/docs/8.2/interactive/auth-pg-hba-conf.html and see about changing your method from ident to something like md5 or trust, depending on your situation.