Обсуждение: RES: Database connection problem

Поиск
Список
Период
Сортировка

RES: Database connection problem

От
Elielson Fontanezi
Дата:
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@hotmail.com]
E.F.:> Enviada em: sexta-feira, 26 de julho de 2002 16:57
E.F.:> Para: pgsql-general@postgresql.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.:>