Re: cant connect php to postgresql

From: Scott Marlowe <smarlowe(at)g2switchworks(dot)com>
To: swati desai <swatidesai0407(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org(dot)
Subject: Re: cant connect php to postgresql
Date: 2006-12-06 20:57:32
Message-ID: 1165438652.3243.10.camel@state.g2switchworks.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Keary Suska 2006-12-06 20:58:10 Trying to Understand Table Inheritance
Previous Message Scott Marlowe 2006-12-06 20:53:38 Re: Restore database from files (not dump files)?