Re: pgadmin problem

From: Oliver Elphick <olly(at)lfix(dot)co(dot)uk>
To: mmd(at)teledavis(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pgadmin problem
Date: 2004-07-24 10:53:49
Message-ID: 1090666428.13866.8.camel@linda
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, 2004-07-23 at 13:58, mmd(at)teledavis(dot)com wrote:
> I want to use pgadmin to set up some tables, rather than do all the
> psql statements from the terminal.
>
> When I try to add a server, though, pgadmin fails to connect, and asks
> whether the server is accepting TCP/IP connections on the default
> port, and whether localhost is the correct servername.
>
> I assume that both of these ARE set to the defaults, because if I
> simply type
>
> $ psql contacts
>
> I go right into psql, where I am allowed to make and alter tables.

In that case you are not using TCP/IP to localhost, but a Unix socket.
Try "psql -h localhost contacts" to see the difference.

Edit $PGDATA/pg_hba.conf to change the settings (and then signal the
postmaster or restart it).

--
Oliver Elphick olly(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA 92C8 39E7 280E 3631 3F0E 1EC0 5664 7A2F A543 10EA
========================================
"Be not deceived; God is not mocked; for whatsoever a
man soweth, that shall he also reap."
Galatians 6:7

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vitaly Belman 2004-07-24 14:00:03 Search in code
Previous Message Oliver Elphick 2004-07-24 10:51:33 Re: phppgadmin and external access