Re: jdbc pg_hba.conf error

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: "Bhavana(dot)Rakesh" <Bhavana(dot)Rakesh(at)noaa(dot)gov>
Cc: chris smith <dmagick(at)gmail(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: jdbc pg_hba.conf error
Date: 2007-05-31 17:17:56
Message-ID: 20070531171756.GA18911@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Bhavana.Rakesh escribió:
> Hi,
> Here's what happens when I specify the port number
>
> [brakesh(at)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Vincenzo Romano 2007-05-31 17:23:37 Numeric performances
Previous Message lawpoop 2007-05-31 16:46:47 collision in serial numbers after INSERT?