RES: Database connection problem

From: Elielson Fontanezi <ElielsonF(at)prodam(dot)sp(dot)gov(dot)br>
To: 'Varsha Agarwal' <varsha_agarwal(at)hotmail(dot)com>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: RES: Database connection problem
Date: 2002-07-29 12:04:14
Message-ID: A799F7647794D311924A005004ACEA97080DDED4@cprodamibs249.prodam
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Try thist in *hba*.conf file:

host all 10.10.0.0 255.255.0.0 trust

and comment any other line in *hba*.conf file.

In these case all computer from net like 10.10.*.* can stablish
conection with postGRES server.

E.F.:> -----Mensagem original-----
E.F.:> De: Varsha Agarwal [mailto:varsha_agarwal(at)hotmail(dot)com]
E.F.:> Enviada em: sexta-feira, 26 de julho de 2002 16:57
E.F.:> Para: pgsql-general(at)postgresql(dot)org
E.F.:> Assunto: [GENERAL] Database connection problem
E.F.:>
E.F.:>
E.F.:> Hi,
E.F.:> I am trying to connect to postgresql database using php.
E.F.:> But when i try to
E.F.:> connect i get the following error in the browser.
E.F.:>
E.F.:> Warning: Unable to connect to PostgreSQL server: FATAL 1: IDENT
E.F.:> authentication failed for user "varsha" in
E.F.:> /var/www/html/test.php on line 3
E.F.:> connection failed
E.F.:>
E.F.:> I saw the pg_hba.conf file and the authentication type
E.F.:> is trust. Can anyone
E.F.:> help me figure out this??
E.F.:> -Varsha
E.F.:>
E.F.:> _________________________________________________________________
E.F.:> Join the world's largest e-mail service with MSN Hotmail.
E.F.:> http://www.hotmail.com
E.F.:>
E.F.:>
E.F.:> ---------------------------(end of
E.F.:> broadcast)---------------------------
E.F.:> TIP 4: Don't 'kill -9' the postmaster
E.F.:>

Browse pgsql-general by date

  From Date Subject
Next Message Elielson Fontanezi 2002-07-29 12:28:04 :-( Free Books
Previous Message Elielson Fontanezi 2002-07-29 11:57:12 RES: [SQL] RES: set DateStyle to 'SQL'