Re: php -postgresql - Mailing list pgsql-general

From Martin Marques
Subject Re: php -postgresql
Date
Msg-id 200407281615.08224.martin@bugs.unl.edu.ar
Whole thread Raw
In response to php -postgresql  (Jay <jspothar@cs.uccs.edu>)
List pgsql-general
El Mié 28 Jul 2004 15:12, Jay escribió:
> hi people,
> i have been trying to connect to the database using php. but i am not
> able to do so .i am getting the following errors
>
>
>
>
>       *Warning*: pg_connect(): Unable to connect to PostgreSQL server:
>       FATAL: IDENT authentication failed for user "jay" . in
>       */var/www/proj/psql_results.php* on line *37*

The error message is quite obvious. You have an authentication problem.

First, you are not sending the password, and it looks like you are using the
ident method to autenticate, so jay should authenticate againt the ident
server.

You should take a good look at pg_hba.conf before you continue with the
coding.

--
 16:05:01 up 23 days,  7:42,  1 user,  load average: 1.86, 0.97, 0.57
-----------------------------------------------------------------
Martín Marqués        | select 'mmarques' || '@' || 'unl.edu.ar'
Centro de Telematica  |  DBA, Programador, Administrador
             Universidad Nacional
                  del Litoral
-----------------------------------------------------------------

pgsql-general by date:

Previous
From: Ian Barwick
Date:
Subject: Re: Tsearch2 dump/reload problem
Next
From: Jerry LeVan
Date:
Subject: Re: [DEFAULT] Daily digest v1.4551 (20 messages)