Russ-

JDBC connects using TCP/IP and this indicates that your host machine doesn't
have a line in /etc/postgresql/pg_hba.conf allowing the requested
connection. This is necessary even if you are connecting to localhost.
Here's what our pg_hba.conf looks like:

local        all                                           peer sameuser
host         all         127.0.0.1     255.0.0.0           ident sameuser
host         all         xxx.xxx.xxx.xxx  255.255.255.255  trust

The first lines allow a connection on the same machine.

The last line allows a connection from the IP address xxx.xxx.xxx.xxx
without any authentication. For details, search for pg_hba in the
interactive docs.

-Nick

---------------------------------------------------------------------
Nick Fankhauser

Business:
[EMAIL PROTECTED]  Phone 1.765.965.7363  Fax 1.765.962.9788
doxpop  - Court records at your fingertips - http://www.doxpop.com/

Personal:
[EMAIL PROTECTED]   http://www.fankhausers.com

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Russ McBride
> Sent: Wednesday, September 26, 2001 4:21 PM
> To: [EMAIL PROTECTED]
> Subject: [JDBC] connection error
>
>
> Hi,
>
> I've registered by driver with the drive manager, but I can't get a
> connection.  Does anyone know what this error means:
>
> No pg-hba.conf entry for host 169.254.23.69 user: postgres
> database: testdb
>
>
>
> best,
>
> Russ
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]
>


---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to [EMAIL PROTECTED] so that your
message can get through to the mailing list cleanly

Reply via email to