pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
problem in pg_hba.conf file
2+ messages / 2 participants
[nested] [flat]

* problem in pg_hba.conf file
@ 2000-06-30 06:55 Irfan Qaiser <irfan@appsys.com.pk>
  2000-06-30 07:10 ` Re: problem in pg_hba.conf file Anatoly K. Lasareff <tolik@aaanet.ru>
  0 siblings, 1 reply; 2+ messages in thread

From: Irfan Qaiser @ 2000-06-30 06:55 UTC (permalink / raw)
  To: pgsql-admin

I m getting the following error message when i try to get a connection through a jsp file.

"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 "


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

whereas pg_hpa.conf file contain two (by default) entries 

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

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

* Re: problem in pg_hba.conf file
  2000-06-30 06:55 problem in pg_hba.conf file Irfan Qaiser <irfan@appsys.com.pk>
@ 2000-06-30 07:10 ` Anatoly K. Lasareff <tolik@aaanet.ru>
  0 siblings, 0 replies; 2+ messages in thread

From: tolik@aaanet.ru @ 2000-06-30 07:10 UTC (permalink / raw)
  To: Irfan Qaiser <irfan@appsys.com.pk>; +Cc: pgsql-admin

>>>>> "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 



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


end of thread, other threads:[~2000-06-30 07:10 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-06-30 06:55 problem in pg_hba.conf file Irfan Qaiser <irfan@appsys.com.pk>
2000-06-30 07:10 ` Anatoly K. Lasareff <tolik@aaanet.ru>

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