Re: Help with PostgreSQL Access

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: Andrew Tuson <andy(at)forum(dot)demon(dot)co(dot)uk>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Help with PostgreSQL Access
Date: 2002-11-18 00:52:49
Message-ID: 1037580769.1000.565.camel@linda
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

On Sun, 2002-11-17 at 20:25, Andrew Tuson wrote:
...
> My query is concerning PostgreSQL Access. When I open it none of the icons
> work and I assume that I have to use Database/Open to tell it the name of my
> database. The Host is shown as localhost and the Port is set to 5432. No
> matter what I enter in the other icons I get the following error message:
>
> Connection to database failed
> could not connect to server: Connection refused
> Is the server running on host localhost and
> accepting TCP/IP connections on port 5432?

Presumably you did not start the postmaster with -i, or else your
settings in $PGDATA/pg_hba.conf do not allow TCP/IP access from
localhost.

The easiest solution is to remove "localhost" from the Host field and
leave that blank. The connection should then use the Unix socket rather
than TCP/IP.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight, UK
http://www.lfix.co.uk/oliver
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"A Song for the sabbath day. It is a good thing to
give thanks unto the LORD, and to sing praises unto
thy name, O most High." Psalms 92:1

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Atul Kulkarni 2002-11-18 04:19:22 Need Information From India
Previous Message Josh Berkus 2002-11-17 22:48:36 Re: Help with PostgreSQL Access