El Dom 26 Jun 2005 22:48, Thomas Bonham escribió:
> Thanks for the help.
> The code now looks like this.
> CODE:
> 
>     <html><head><title>Login</title>
> 
>     </head>
>     <body>
>     <?php
>       
>       $conn = pg_connect("user=auth dbname=auth password=redhat")
>       or die ("Could not connect") ;
>       echo "Connectd Successfully";
>       pg_close($conn);
>       
>     ?>
>     </body>
>     </html>
> 
> And now the error I get is the following.
> 
> 
> Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL: 
> IDENT authentication failed for user "auth" in 
> /var/www/html/thomas/cis166ae/database/secretdb.php on line 8
> Could not connect

Check your pg_hba.conf file. Looks like you have IDENT authentification, and 
auth is not a system user.

Read the PostgreSQL documentation about this.

-- 
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
---------------------------------------------------------
Martín Marqués          |   Programador, DBA
Centro de Telemática    |     Administrador
               Universidad Nacional
                    del Litoral
---------------------------------------------------------

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to