From: Faudzy Sulaiman <faudzy@ummail.um.edu.my>
To: pgsql-php@postgresql.org
Subject: unable to connect to PostgreSQL server
Date: Wed, 23 Jan 2002 14:41:59 +0800
Message-ID: <200201230641.g0N6fxv05847@ummail.um.edu.my> (raw)
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
user=faudzy
"))
{ echo "Connection to PostgreSQL server 'localhost' successful<br>\n"; }
how do I fix it ?
thanks.
------------------------------
http://www.um.edu.my
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: faudzy@ummail.um.edu.my
Subject: Re: unable to connect to PostgreSQL server
In-Reply-To: <200201230641.g0N6fxv05847@ummail.um.edu.my>
References: <200201230641.g0N6fxv05847@ummail.um.edu.my>
* 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