Re: Re: running pgaccess on localhost

From: "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk>
To: Joel Burton <jburton(at)scw(dot)org>
Cc: Mike Goetz <nospam(at)home(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Re: running pgaccess on localhost
Date: 2001-04-27 21:22:00
Message-ID: 200104272122.f3RLM0iW026432@linda.lfix.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Joel Burton wrote:
>On Fri, 27 Apr 2001, Mike Goetz wrote:

>> I'm trying to run pgaccess on a database I've created, and I get the
>> following error:
>>
>> PostgreSQL error message: Connection to database failed
>> PQconnectPoll() -- connect() failed: Connection refused
>> Is the postmaster running (with -i) at 'localhost' and accepting
>> connections on TCP/IP port '5432'?

>The fact that you're running pgaccess from a term window doesn't mean that
>pgaccess connects to PG w/a local socket.
>
>Someone may know how to configure pgaccess to use a local socket. If not,
>use the -i switch, and edit $PGDATA/pg_hba.conf to block access from other
>machines. (This is the default setting.)

When pgaccess's connection dialog appears, remove any entry from the
host field. If this is empty, pgaccess will connect through the Unix socket;
if it has anything at all in it, it will use TCP/IP.

--
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP: 1024R/32B8FAA1: 97 EA 1D 47 72 3F 28 47 6B 7E 39 CC 56 E4 C1 47
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C
========================================
"Draw nigh to God, and he will draw nigh to you.
Cleanse your hands, ye sinners; and purify your
hearts, ye double minded." James 4:8

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Elphick 2001-04-27 21:28:53 Re: Another upgrade question
Previous Message will trillich 2001-04-27 21:05:56 Re: last comma inside "CREATE TABLE ()" statements