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

Re: pgadmin problem

From: Doug McNaught <doug(at)mcnaught(dot)org>
To: mmd(at)teledavis(dot)com
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: pgadmin problem
Date: 2004-07-23 13:54:31
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
mmd(at)teledavis(dot)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


In response to

pgsql-general by date

Next:From: SecrétariatDate: 2004-07-23 13:57:31
Subject: Connexion to Postgresql using TCP/IP
Previous:From: eClaireDate: 2004-07-23 13:37:11
Subject: phppgadmin and external access

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