Re: pgadmin problem - Mailing list pgsql-general

From Doug McNaught
Subject Re: pgadmin problem
Date
Msg-id 874qnybzhk.fsf@asmodeus.mcnaught.org
Whole thread Raw
In response to pgadmin problem  (mmd@teledavis.com)
List pgsql-general
mmd@teledavis.com writes:

> 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.

The server doesn't use TCP/IP by default.  You can change this by
editing the postgresql.conf file in the server's data directory (the
location of which varies depending on how PG was installed) and
setting 'tcpip_socket' to 'true', then restarting the server.

You may also need to edit pg_hba.conf, depending on whether you're
connecting from the local machine and how you have your databases set
up.

-Doug

pgsql-general by date:

Previous
From: Christopher Browne
Date:
Subject: Re: 2 postgresql processes on the same machine ?
Next
From: Secrétariat
Date:
Subject: Connexion to Postgresql using TCP/IP