Hi,
I can't connect to Postgresql. The installation is "straight of the box" on Red Hat 8.2. PHP is runing ok.
I get this message in browser:
Warning: Unable to connect to PostgreSQL server: connectDBStart() -- connect() failed: Connection refused Is the postmaster running (with -i) at 'localhost' and accepting connections on TCP/IP port 5432? in /var/ on line 15
Could not open connection to database server
with this in the php file:
$host = "localhost";
$user = "postgres";
$pass = "postgres";
$db = "stedb";
$connection = pg_connect ("host=$host dbname=$db user=$user"
When I enter: postmaster -i -D /var/lib/psql/data
I get the message: ...postmaster.pid already exists
Can anyone suggest hwere I can look to get through?
Cheers stephen
I can't connect to Postgresql. The installation is "straight of the box" on Red Hat 8.2. PHP is runing ok.
I get this message in browser:
Warning: Unable to connect to PostgreSQL server: connectDBStart() -- connect() failed: Connection refused Is the postmaster running (with -i) at 'localhost' and accepting connections on TCP/IP port 5432? in /var/ on line 15
Could not open connection to database server
with this in the php file:
$host = "localhost";
$user = "postgres";
$pass = "postgres";
$db = "stedb";
$connection = pg_connect ("host=$host dbname=$db user=$user"
When I enter: postmaster -i -D /var/lib/psql/data
I get the message: ...postmaster.pid already exists
Can anyone suggest hwere I can look to get through?
Cheers stephen