Lists: | pgsql-admin |
---|
From: | ee97010(at)fe(dot)up(dot)pt |
---|---|
To: | pgsql-admin(at)postgresql(dot)org |
Subject: | PSQL error connection |
Date: | 2002-03-26 14:00:15 |
Message-ID: | 1017151215.3ca07eef913e8@webmail.fe.up.pt |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-admin |
Hello.
I wonder if you could help me? When i tried to make a connection to my database
Postgres by TCP/IP the following ocurred:
Warning: Unable to connect to PostgreSQL server: connectDBStart() -- connect()
failed: Connection refused Is the postmaster running (with -i) at 'dionisio'
and accepting connections on TCP/IP port 5432?
My PHP script is:
$conn = pg_connect("host=remote_host
dbname=myDB
user=username
password=pass");
Thanks for your atention and looking forward to hear from you soon,
Carla Pereira
From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | <ee97010(at)fe(dot)up(dot)pt> |
Cc: | <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: PSQL error connection |
Date: | 2002-04-02 18:14:05 |
Message-ID: | Pine.LNX.4.30.0204021312380.686-100000@peter.localdomain |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-admin |
ee97010(at)fe(dot)up(dot)pt writes:
> Hello.
> I wonder if you could help me? When i tried to make a connection to my database
> Postgres by TCP/IP the following ocurred:
>
> Warning: Unable to connect to PostgreSQL server: connectDBStart() -- connect()
> failed: Connection refused Is the postmaster running (with -i) at 'dionisio'
> and accepting connections on TCP/IP port 5432?
Actually reading the error message and answering the question contained
therein might be a good start.
--
Peter Eisentraut peter_e(at)gmx(dot)net
From: | "Chad R(dot) Larson" <clarson(at)eldocomp(dot)com> |
---|---|
To: | ee97010(at)fe(dot)up(dot)pt, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: PSQL error connection |
Date: | 2002-04-02 18:16:44 |
Message-ID: | 4.2.2.20020402110849.00c55728@ecint.ecinet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-admin |
At 07:00 AM 3/26/2002 , ee97010(at)fe(dot)up(dot)pt wrote:
>Warning: Unable to connect to PostgreSQL server: connectDBStart() --
>connect()
>failed: Connection refused Is the postmaster running (with -i) at 'dionisio'
>and accepting connections on TCP/IP port 5432?
So =is= your postmaster running with a '-i'?
Try "pg_ctl status" to find out.
-crl
--
Chad R. Larson (CRL22) chad(at)eldocomp(dot)com
Eldorado Computing, Inc. 602-604-3100
5353 North 16th Street, Suite 400
Phoenix, Arizona 85016-3228