[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

RE: Postgresql problem



Take a look at netstat -tap and see of postgres is running.  I installed the
latest package/rpm (7.4.2) and, by default, postgres wasn't listening.  I
changed the postmaster startup to include the -i parameter so that it would
listen.

Aaron 

-----Original Message-----
From: fedora-list-bounces redhat com [mailto:fedora-list-bounces redhat com]
On Behalf Of Giandomenico De Tullio
Sent: Sunday, April 18, 2004 11:54 AM
To: For users of Fedora Core releases
Subject: Re: Postgresql problem

On 18/04/2004 04:32:18, gm wrote:
> 
> 
> Hey guys
> 
> I get this error in php:
> 
> 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? . in 
> /www/index.php on line 7
> 
> PHP code
> 
> $conn = pg_connect("host=localhost user=***** password=****
> dbname=***** ");
>

remove "host=localhost" ?


--
fedora-list mailing list
fedora-list redhat com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]