From irfan@appsys.com.pk Fri Jun 30 06:47:43 2000 Received: from mail3.nic-reg-dns.com (ns0.nic-reg-dns.com [208.49.24.2]) by hub.org (8.10.1/8.10.1) with ESMTP id e5U6lh155688 for ; Fri, 30 Jun 2000 02:47:43 -0400 (EDT) Received: from jangloos [63.70.26.119] by mail3.nic-reg-dns.com (SMTPD32-6.03) id A1D816C2007A; Thu, 29 Jun 2000 23:44:40 -0700 Message-ID: <001701bfe260$38d82390$0300a8c0@jungle> From: "Irfan Qaiser" To: Subject: problem in pg_hba.conf file Date: Fri, 30 Jun 2000 11:55:27 +0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0010_01BFE28A.14D5BFA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Archive-Number: 200006/148 This is a multi-part message in MIME format. ------=_NextPart_000_0010_01BFE28A.14D5BFA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I m getting the following error message when i try to get a connection thro= ugh a jsp file. "Something unusual has occured to cause the driver to fail. Please report t= his exception: java.sql.SQLException: No pg_hba.conf entry for host 161.58.= 235.51, user ticket, database theatick " where '161.58.235.51' is the ip address of my server and theatick is the da= tabase name and tikcet is the user Id for that database whereas pg_hpa.conf file contain two (by default) entries=20 local all trust host all 127.0.0.1 255.255.255.255 trust is there anything else required in pg_hba.conf or what ???? Irfan Qaiser ------=_NextPart_000_0010_01BFE28A.14D5BFA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I m getting the following error message wh= en i try=20 to get a connection through a jsp file.
 
"Something unusual has occured to cause th= e driver=20 to fail. Please report this exception: java.sql.SQLException: No pg_hba.con= f=20 entry for host 161.58.235.51, user ticket, database theatick "
 
 
where '161.58.235.51' is the ip address of= my=20 server and theatick is the database name and tikcet is the user Id for that= =20 database
 
whereas pg_hpa.conf file contain two (by d= efault)=20 entries
 
local     all=20                = =20                = =20                = =20         trust
host     all   =20 127.0.0.1    255.255.255.255      &= nbsp;=20     trust
 
is there anything else required in pg_hba.= conf or=20 what ????
 
Irfan Qaiser
------=_NextPart_000_0010_01BFE28A.14D5BFA0-- From tolik@aaanet.ru Fri Jun 30 07:11:23 2000 Received: from tolikus.hq.aaanet.ru (tolikus.hq.aaanet.ru [213.59.98.203]) by hub.org (8.10.1/8.10.1) with ESMTP id e5U7BN109593 for ; Fri, 30 Jun 2000 03:11:23 -0400 (EDT) Received: (from tolik@localhost) by tolikus.hq.aaanet.ru (8.9.3/8.9.3) id LAA14631; Fri, 30 Jun 2000 11:10:45 +0400 (MSD) (envelope-from tolik) To: "Irfan Qaiser" Cc: Subject: Re: problem in pg_hba.conf file References: <001701bfe260$38d82390$0300a8c0@jungle> Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII From: tolik@aaanet.ru (Anatoly K. Lasareff) Date: 30 Jun 2000 11:10:43 +0400 In-Reply-To: "Irfan Qaiser"'s message of "Fri, 30 Jun 2000 11:55:27 +0500" Message-ID: <87ya3nsky4.fsf@tolikus.hq.aaanet.ru> Lines: 35 X-Mailer: Gnus v5.5/XEmacs 20.4 - "Emerald" X-Archive-Number: 200007/5 >>>>> "IQ" == Irfan Qaiser writes: IQ> [1 ] IQ> I m getting the following error message when i try to get a connection through a jsp file. IQ> "Something unusual has occured to cause the driver to fail. Please report this exception: java.sql.SQLException: No pg_hba.conf entry for host 161.58.235.51, user ticket, database theatick " IQ> where '161.58.235.51' is the ip address of my server and theatick is the database name and tikcet is the user Id for that database IQ> whereas pg_hpa.conf file contain two (by default) entries IQ> local all trust IQ> host all 127.0.0.1 255.255.255.255 trust IQ> is there anything else required in pg_hba.conf or what ???? IQ> Irfan Qaiser IQ> [2 ] You have to add following line in pg_hba.conf: host theatick 161.58.235.51 255.255.255.255 trust ^1 ^2 ^3 ^4 ^5 1. Keyword 'host' 2. Database name 3. IP addres you access from 4. Mask for this address 5. Keyword 'trust' All the instruction are in the same file - ~pgsql/data/pg_hba.conf -- Anatoly K. Lasareff Email: tolik@aaanet.ru