From: Martín Marqués <martin@bugs.unl.edu.ar>
To: Faudzy Sulaiman <faudzy@ummail.um.edu.my>
Cc: pgsql-php@postgresql.org
Subject: Re: unable to connect to PostgreSQL server
Date: Fri, 25 Jan 2002 19:44:14 -0300
Message-ID: <20020125224415.43ECCFBE1@bugs.unl.edu.ar> (raw)
In-Reply-To: <200201230641.g0N6fxv05847@ummail.um.edu.my>
References: <200201230641.g0N6fxv05847@ummail.um.edu.my>
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@unl.edu.ar
Programador, Administrador, DBA | Centro de Telematica
Universidad Nacional
del Litoral
-----------------------------------------------------------------
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: martin@bugs.unl.edu.ar, faudzy@ummail.um.edu.my
Subject: Re: unable to connect to PostgreSQL server
In-Reply-To: <20020125224415.43ECCFBE1@bugs.unl.edu.ar>
References: <200201230641.g0N6fxv05847@ummail.um.edu.my> <20020125224415.43ECCFBE1@bugs.unl.edu.ar>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox