Re: PostgreSQL

From: Date: Thu, 18 Jul 2002 22:59:58 +0000
Subject: Re: PostgreSQL
Groups: php.general 
Request: Send a blank email to php-general+get-108370@lists.php.net to get a copy of this message
>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 Show us the pg_connect() line... You need it to look like this: $connection = pg_connect('host=localhost user=XXXXXXXX password=XXXXXXXX dbname='); One big long string instead of a bunch of arguments. Does ps auxwwww | grep postmaster show anything useful? -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#108370) next »