Skip site navigation (1) Skip section navigation (2)

pg_connect() error

From: Arun Oakley <arun(dot)oakley(at)gmail(dot)com>
To: pgsql-php(at)postgresql(dot)org
Subject: pg_connect() error
Date: 2009-09-04 04:19:59
Message-ID: e3dc1abc0909032119p39a9b15ci74163f28e9ef7cbf@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-php
hi guys,
we have a postgres db with a hosting company and have been trying to connect
to. error is below.
*Warning*: pg_connect()
[function.pg-connect<http://hoopsgm.net/test/function.pg-connect>]:
Unable to connect to PostgreSQL server: could not connect to server:
Connection refused Is the server running on host "pgdb1.host-ed.net" and
accepting TCP/IP connections on port 3306?

from my trawling around google i have found that it could be related to the
postgres.conf file and turning on tcpip sockets to true?? (i cannot
view/edit any postgres conf files)

oh and those are the host/port details supplied by hosting provider


any help would be appreciated in pointing on the right path.

Cheers

Arun

Responses

pgsql-php by date

Next:From: Dimitris SakellariosDate: 2009-09-04 10:21:20
Subject: Re: How to select the source ip address for a connection to the database server
Previous:From: Dustin ButlerDate: 2009-09-03 13:32:21
Subject: Re: How to select the source ip address for a connection to the database server

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group