Re: PostgreSQL connection problems

From: Date: Thu, 27 Sep 2001 12:01:05 +0000
Subject: Re: PostgreSQL connection problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-68986@lists.php.net to get a copy of this message
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" <alberto.arround.sdrsl.com@pb1.pair.com> To: <php-general@lists.php.net> 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#68986) next »