From: tolik@aaanet.ru
To: Irfan Qaiser <irfan@appsys.com.pk>
Cc: pgsql-admin@postgresql.org
Subject: Re: problem in pg_hba.conf file
Date: 30 Jun 2000 11:10:43 +0400
Message-ID: <87ya3nsky4.fsf@tolikus.hq.aaanet.ru> (raw)
References: <001701bfe260$38d82390$0300a8c0@jungle>
>>>>> "IQ" == Irfan Qaiser <irfan@appsys.com.pk> writes:
IQ> [1 <text/plain; iso-8859-1 (quoted-printable)>]
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 <text/html; iso-8859-1 (quoted-printable)>]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tolik@aaanet.ru, irfan@appsys.com.pk
Subject: Re: problem in pg_hba.conf file
In-Reply-To: <87ya3nsky4.fsf@tolikus.hq.aaanet.ru>
References: <001701bfe260$38d82390$0300a8c0@jungle> <87ya3nsky4.fsf@tolikus.hq.aaanet.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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