You need to configure you database in the pg_hba.conf. The pg_hba.conf is in
your postgres directory.   Put one line like this in your pg_hba.conf

host         yourdatabase         yourhost     255.255.255.255   trust


----- Original Message -----
From: "Alberto" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 27, 2001 7:51 AM
Subject: [PHP] PostgreSQL connection problems


> Warning: Unable to connect to PostgreSQL server: No pg_hba.conf entry for
> host myhost, user myuser, database mydb in /path/to/principal.php on line
27
>
> that's
>
>  $bdConexion = pg_connect ("host=".$bdHost." port=".$bdPuerto."
> dbname=".$bdBD." user=".$bdLogin." password=".$bdPassword);
>
>
> PHP is already compiled with PostgreSQL support. PostgreSQL is running on
a
> remote server.
>
> Thnx in advance
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to