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           ident sameuser
host         all  trust

The first lines allow a connection on the same machine.

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


Nick Fankhauser

[EMAIL PROTECTED]  Phone 1.765.965.7363  Fax 1.765.962.9788
doxpop  - Court records at your fingertips -


> -----Original Message-----
> [mailto:[EMAIL PROTECTED]]On Behalf Of Russ McBride
> Sent: Wednesday, September 26, 2001 4:21 PM
> 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 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