Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

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: Mon, 08 Feb 2010 09:41:04 -0700
  • Message-id: <4B703EA0.4010608@ttc-cmc.net> <text/plain>

 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




Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group