>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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to