Re: [DB] connection to database

From: Date: Thu, 11 Sep 2003 18:33:02 +0000
Subject: Re: [DB] connection to database
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7738@lists.php.net to get a copy of this message
Hi! phpCoder wrote:
On my local web server, localhost works fine too but with my provider here is the error message : Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server: Connection refused Is the server running on host localhost and accepting TCP/IP connections on port 5432?
This usually means Postgres was configured to accept connections on local socket only. Looking at DB doc, try the following: pgsql://user@unix()/dbname

« previous php.pear.general (#7738) next »