Re: PostgreSQL

From: Date: Tue, 16 Jul 2002 08:03:14 +0000
Subject: Re: PostgreSQL
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-107815@lists.php.net to get a copy of this message
rdkurth@starband.net wrote:
PHP is compiled with PostgreSQL support but I can not connect. I get this error message What does it mean and what do I need to do to fix it Warning: pg_connect() unable to connect to PostgreSQL server: connectDB() -- connect() failed: Connection refused Is the postmaster running (with -i) at 'localhost' and accepting connections on TCP/IP port '5583'? in /home/sites/home/web/test/test.php on line 2
either your postmaster is not running... or your postmaster does not accept TCP/IP connections... read the documentation for PostgreSQL Installation it has tons of info there for your convenience... try editing your pg_hba.conf file for postgreSQL... so it will accept tcp IP connections:
host         all         <IP>  255.255.255.0       trust
where IP is the ip address of the host that will access the postgreSQL database at the server. i hope i got it right -- Lejanson C. Go, SDE I

« previous php.general (#107815) next »