pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Unable to connect postgreSQL 8.4 with java application.
2+ messages / 2 participants
[nested] [flat]

* Unable to connect postgreSQL 8.4 with java application.
@ 2010-02-08 06:21  Neha Mehta <Neha.Mehta@lntinfotech.com>
  0 siblings, 1 reply; 2+ messages in thread

From: Neha Mehta @ 2010-02-08 06:21 UTC (permalink / raw)
  To: 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...

Could you please help to to find out the missing step.
Also, if there are any more instructions to be followed...

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



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks & Regards,
Neha Mehta





________________________________
This Email may contain confidential or privileged information for the intended recipient (s) If you are not the intended recipient, please do not use or disseminate the information, notify the sender and delete it from your system.

______________________________________________________________________

Attachments:

image001.gif (image/gif, 5.5K) download view image
^ permalink raw reply [nested|flat] 2+ messages in thread

* Re: Unable to connect postgreSQL 8.4 with java application.
@ 2010-02-08 16:41  dmp <danap@ttc-cmc.net>
  parent: Neha Mehta <Neha.Mehta@lntinfotech.com>
  0 siblings, 0 replies; 2+ messages in thread

From: dmp @ 2010-02-08 16:41 UTC (permalink / raw)
  To: Neha Mehta <Neha.Mehta@lntinfotech.com>; 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




^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2010-02-08 16:41 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-02-08 06:21 Unable to connect postgreSQL 8.4 with java application. Neha Mehta <Neha.Mehta@lntinfotech.com>
2010-02-08 16:41 ` dmp <danap@ttc-cmc.net>

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