unable to connect to PostgreSQL server

From: Faudzy Sulaiman <faudzy(at)ummail(dot)um(dot)edu(dot)my>
To: <pgsql-php(at)postgresql(dot)org>
Subject: unable to connect to PostgreSQL server
Date: 2002-01-23 06:41:59
Message-ID: 200201230641.g0N6fxv05847@ummail.um.edu.my
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Andrew McMillan 2002-01-23 10:52:57 Re: "SQL" REPLACE SYNTAX
Previous Message Manuel Lemos 2002-01-23 05:54:27 Re: "SQL" REPLACE SYNTAX