Re: Unable to connect postgreSQL 8.4 with java application.

From: dmp <danap(at)ttc-cmc(dot)net>
To: Neha Mehta <Neha(dot)Mehta(at)lntinfotech(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Unable to connect postgreSQL 8.4 with java application.
Date: 2010-02-08 16:41:04
Message-ID: 4B703EA0.4010608@ttc-cmc.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

> Hi,
>
> I am a newbie to postgreSQL. I am trying to connect my java
> application(using jdbc) with postgreSQL 8.4 , but I am getting the
> following error :
>
> FATAL: no pg_hba.conf entry for host "172.17.88.52", user "postgres",
> database "ofbiz-test", SSL off
>
> I tried adding the host name in pg_hba.conf file as :
>
> host all all 172.17.88.52 255.255.255.255 trust
>
> but when I restart the server, I get an error…

Looks like the address must be CIDR-Address, did you try:

host all all 172.17.88.52/32 trust

> Is it necessary to use postgreSQL with SSL if my java application uses
> SSL??

Someone else here should be able to answer this.

danap

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Jeenicke, Martti 2010-02-08 17:06:39 Strange behavior after setting timestamp field to null - A bug?
Previous Message Neha Mehta 2010-02-08 06:21:37 Unable to connect postgreSQL 8.4 with java application.