Received: from bugs.unl.edu.ar (bugs.unl.edu.ar [168.96.132.208]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g0PMk3l09231 for ; Fri, 25 Jan 2002 17:46:04 -0500 (EST) (envelope-from martin@bugs.unl.edu.ar) Received: from localhost (localhost [127.0.0.1]) by bugs.unl.edu.ar (Postfix) with ESMTP id 6B064FCB5; Fri, 25 Jan 2002 19:44:16 -0300 (GMT) Received: by bugs.unl.edu.ar (Postfix, from userid 1004) id 43ECCFBE1; Fri, 25 Jan 2002 19:44:15 -0300 (GMT) Content-Type: text/plain; charset="iso-8859-1" From: =?iso-8859-1?q?Mart=EDn=20Marqu=E9s?= To: Faudzy Sulaiman Subject: Re: unable to connect to PostgreSQL server Date: Fri, 25 Jan 2002 19:44:14 -0300 X-Mailer: KMail [version 1.3.2] References: <200201230641.g0N6fxv05847@ummail.um.edu.my> In-Reply-To: <200201230641.g0N6fxv05847@ummail.um.edu.my> Cc: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020125224415.43ECCFBE1@bugs.unl.edu.ar> X-Virus-Scanned: by AMaViS snapshot-20011031 X-Archive-Number: 200201/72 X-Sequence-Number: 876 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 -----------------------------------------------------------------