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