Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] Failure to connect remotely to postgresql with JDBC

From: Peter T Mount <peter(at)retep(dot)org(dot)uk>
To: Kelvin SIN <ksin(at)students(dot)cs(dot)mu(dot)OZ(dot)AU>
Cc: pgsql-interfaces(at)postgresql(dot)org, Gregory Scott WEBBER <gsw(at)students(dot)cs(dot)mu(dot)OZ(dot)AU>, Brendan Leigh DWYER <bld(at)students(dot)cs(dot)mu(dot)OZ(dot)AU>
Subject: Re: [INTERFACES] Failure to connect remotely to postgresql with JDBC
Date: 1998-07-29 16:22:27
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
On Thu, 30 Jul 1998, Kelvin SIN wrote:

> Hi,
> I am using Postgresql 6.3.2 running on a Sun Solaris. The interface I am
> using is JDBC.
> When I connect, I received the following error messages:


> The url is:
> jdbc:postgresql://
> auth=password

First, the auth=password is no longer used. Since 6.3, the network
protocol changed, and the client and server now negociate the
authentication scheme to use (based on pb_hba.conf).

Also, remember that postgresql users are not the same as unix users.
Unless you have used pg_password to create a password file, then use the
"ALTER USER" sql statement to set a password in the database.

> conlayer is the database name. 
> That is, the server is and the port is 5432. postmaster
> is definitely running on holly. The environment variables PGHOST has been
> set to and PGPORT has been set to 5432. PGLIB and
> PGDATA has also been set correctly. The pg_hba.conf has been set to accept
> all users from anywhere but this doesn't helps. Can someone please help?

Is the client holly aswell?

Do you have the pg_hba.conf file configured to allow the client's IP
address access? Even if they are the same machine, if you specify the host
name, rather name localhost, then you'll need to add the server's IP
address into the file aswell as

Peter T Mount peter(at)retep(dot)org(dot)uk or petermount(at)earthling(dot)net
Main Homepage:
PostgreSQL JDBC Faq:

In response to


pgsql-interfaces by date

Next:From: Nathan DeBardelebenDate: 1998-07-29 23:55:56
Subject: Storing Java Objects Through JDBC
Previous:From: SandeepDate: 1998-07-29 15:07:10
Subject: Problem in compilation

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group