Re: Unable to connect to 9.5 via JDBC driver 1207 - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: Unable to connect to 9.5 via JDBC driver 1207
Date
Msg-id CADK3HHJMJ6n2CMQ2yJrasUg_5r08WdEGVWg2f-dcTTVfXnXWtQ@mail.gmail.com
Whole thread Raw
In response to Re: Unable to connect to 9.5 via JDBC driver 1207  (Thomas Kellerer <spam_eater@gmx.net>)
Responses Re: Unable to connect to 9.5 via JDBC driver 1207  (Thomas Kellerer <spam_eater@gmx.net>)
List pgsql-jdbc
In this case there are no tcp connections allowed in pg_hba.conf.

java by default only connects to tcp connections. psql will connect to local socket in the example above

try psql -h localhost ... to see the same results


On 2 February 2016 at 13:54, Thomas Kellerer <spam_eater@gmx.net> wrote:
rob stone schrieb am 02.02.2016 um 18:08:
Hello,

I downloaded the 9.5 release as Debian packages and everything is
working as intended except for obtaining a connection via the JDBC
driver.

org.postgresql.util.PSQLException: FATAL: no pg_hba.conf entry for host
"127.0.0.1", user "timeman", database "timemanager", SSL off
        at

I had the same problem, I could only resolve it by switching back to 1206






--
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc

pgsql-jdbc by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: Unable to connect to 9.5 via JDBC driver 1207
Next
From: Thomas Kellerer
Date:
Subject: Re: Unable to connect to 9.5 via JDBC driver 1207