From: | Martín Marqués <martin(at)bugs(dot)unl(dot)edu(dot)ar> |
---|---|
To: | Faudzy Sulaiman <faudzy(at)ummail(dot)um(dot)edu(dot)my> |
Cc: | <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: unable to connect to PostgreSQL server |
Date: | 2002-01-25 22:44:14 |
Message-ID: | 20020125224415.43ECCFBE1@bugs.unl.edu.ar |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
On Mié 23 Ene 2002 03:41, you wrote:
> I'm getting an error message :
>
> Warning: Unable to connect to PostgreSQL server: PQconnectDB() -- couldn't
> read postmaster response: errno=104 Connection reset by peer in
> /var/www/html/test1.php on line 24
>
> my PHP script is :
>
> if($myconn = pg_connect("dbname=mydb
> host=localhost
> port=443
Try eliminating this line (don't put the port).
Also, check if the postmaster is running in the server.
Saludos... :-)
--
Porqué usar una base de datos relacional cualquiera,
si podés usar PostgreSQL?
-----------------------------------------------------------------
Martín Marqués | mmarques(at)unl(dot)edu(dot)ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2002-01-26 00:27:31 | Re: Long running queries and timeouts |
Previous Message | Manuel Lemos | 2002-01-24 00:57:46 | Re: "SQL" REPLACE SYNTAX |