Re: jdbc pg_hba.conf error - Mailing list pgsql-general

From Alvaro Herrera
Subject Re: jdbc pg_hba.conf error
Date
Msg-id 20070531171756.GA18911@alvh.no-ip.org
Whole thread Raw
In response to Re: jdbc pg_hba.conf error  ("Bhavana.Rakesh" <Bhavana.Rakesh@noaa.gov>)
List pgsql-general
Bhavana.Rakesh escribió:
> Hi,
> Here's what happens when I specify the port number
>
> [brakesh@lnx383 ~]$ psql -U brakesh -p 5000 -h 127.0.0.1 -d testing123
> psql: could not connect to server: Connection refused
>        Is the server running on host "127.0.0.1" and accepting
>        TCP/IP connections on port 5000?

This one is not listening on port 5000 -- it's the default 5432, unless
you have the port set elsewhere on the .conf file.

> #---------------------------------------------------------------------------
> # CONNECTIONS AND AUTHENTICATION
> #---------------------------------------------------------------------------
>
> # - Connection Settings -
>
> listen_addresses = '*'          # what IP address(es) to listen on;
>                                # comma-separated list of addresses;
>                                # defaults to 'localhost', '*' = all
>                                # (change requires restart)
> #port = 5432                            # (change requires restart)
> max_connections = 100                   # (change requires restart)


--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

pgsql-general by date:

Previous
From: Marco Colombo
Date:
Subject: Re: PITR Base Backup on an idle 8.1 server
Next
From: Vincenzo Romano
Date:
Subject: Numeric performances