Re: Not connect to server! - Mailing list pgsql-admin

From Scott Marlowe
Subject Re: Not connect to server!
Date
Msg-id 1104416406.5893.57.camel@state.g2switchworks.com
Whole thread Raw
In response to Not connect to server!  (Amauri Pimenta <amauripimenta@gmail.com>)
List pgsql-admin
On Thu, 2004-12-30 at 07:46, Amauri Pimenta wrote:
> Hello!
>
> Well, i just try to connect to server, but without successfull!
>
> the error is "Is the server running on host "172.22.0.23" and
> accepting TCP/IP Connections on port 5432?"
>
>  Just look documentation and follow the steps and the error continue!
>
> Please, help me! its urgent!

Are you starting your database with pg_ctl or by typing postmaster by
hand?  If you're using pg_ctl, edit your $PGDATA/postgresql.conf file to
have tcpip_socket = true, and edit $PGDATA/pg_hba.conf to allow your
machine to connect.  Look for a line that looks like this:

host    all         all         127.0.0.1         255.255.255.0  trust

and edit accordingly, then restart your server.

If you're starting postmaster by hand, I'd recommend switching to using
pg_ctl.  Generally running postmaster by hand is done by people more
expert at running postgresql than folks not sure why they can't get
TCP/IP connections to work.  :)

pgsql-admin by date:

Previous
From: Amauri Pimenta
Date:
Subject: Not connect to server!
Next
From: Jason Dixon
Date:
Subject: Re: Not connect to server!