Re: Re: PostgreSQL error with PHP
| From: | Martín Marqués | Date: | Mon, 27 Jun 2005 09:54:58 +0000 |
| Subject: | Re: Re: PostgreSQL error with PHP | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-39794@lists.php.net to get a copy of this message | ||
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
---------------------------------------------------------