From: Dr. Herrera <drherlams@diandel.com>
To: pgsql-interfaces@postgresql.org
Subject: JDBC Connection
Date: Mon, 24 Aug 1998 14:14:04 +0200
Message-ID: <199808241138.NAA02535@diandel.com> (raw)
Hello
I am trying to connect to PostgreSQL from Java (JDK 1.1.6) under RedHat
Linux 5.1 using the JDBC interface. I have compiled the driver and tried to
run the examples this way:
java -Djdbc.drivers=postgresql.Driver example.basic jdbc:postgresql:prueba
postgres postgres
where 'prueba' is the name of an existing database.
But I always get a 'Connection refused' error in
DriverManager.getConnection("jdbc:postgresql:prueba")
I have modified pg_hba.conf to allow any user on any host access to any
database
but the error still remains.
Can anybody tell me what can be the problem and any possible solution?
Thank you very much
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 using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: drherlams@diandel.com
Subject: Re: JDBC Connection
In-Reply-To: <199808241138.NAA02535@diandel.com>
* 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