pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: BJ Freeman <bjfree@free-man.net>
To: pgsql-jdbc@postgresql.org
Subject: upgrade causes psql to not work
Date: Thu, 26 Jul 2012 12:40:07 -0700
Message-ID: <50119D17.9030602@free-man.net> (raw)

did a centos 5.6 server upgrade to PostgreSQL version 8.4.12.
console:
[root@main jdbc]# psql -h localhost -U gameserver 
passwordfromentityengine.xml

psql: could not connect to server: Connection refused
         Is the server running on host "localhost" and accepting
         TCP/IP connections on port 5432?

I notice there is no localhost and th 127.0.0.1 has /32 added.
I can not add a localhost to the allowed hosts

psql is running
if I do
[root@main jdbc]# psql  -U gameserver
  passwordfromentityengine.xml
with out defining the host, it works.

I believe it is using Unix pipes instead of TCP
I also can manage the psql server through webmin.

I looked on the http://jdbc.postgresql.org/
and could not find any docs on the jdbc string to use my old one with
localhost and 127.0.0.1 do not work any more.
here is the conf
# "local" is for Unix domain socket connections only
local all all trust
# IPv4 local connections:
host all all 127.0.0.1/32 trust
# IPv6 local connections:
host all all ::1/128 trust
host all all 127.0.0.1 255.255.255.255 trust
host all all 0.0.0.0 0.0.0.0 trust




view thread (4+ messages)  latest in thread

Message-ID: <50119D17.9030602@free-man.net>
Permalink:  ../50119D17.9030602@free-man.net/
Also on:    postgresql.org/message-id/50119D17.9030602@free-man.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: bjfree@free-man.net
  Subject: Re: upgrade causes psql to not work
  In-Reply-To: <50119D17.9030602@free-man.net>
  References: <50119D17.9030602@free-man.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox