From: Eric Marsden <emarsden@mail.dotcom.fr>
To: Dr. Herrera <drherlams@diandel.com>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] JDBC Connection
Date: 24 Aug 1998 15:40:25 +0200
Message-ID: <m2lnoev6pi.fsf@cook.onecert.fr> (raw)
References: <199808241138.NAA02535@diandel.com>
>>>>> "DrH" == Herrera <drherlams@diandel.com> writes:
DrH> I am trying to connect to PostgreSQL from Java (JDK 1.1.6)
DrH> under RedHat Linux 5.1 using the JDBC interface. I have
DrH> compiled the driver and tried to run the examples this way:
DrH>
DrH> java -Djdbc.drivers=postgresql.Driver example.basic jdbc:postgresql:prueba
DrH> postgres postgres
DrH>
DrH> where 'prueba' is the name of an existing database.
DrH> But I always get a 'Connection refused' error in
DrH> DriverManager.getConnection("jdbc:postgresql:prueba")
DrH>
DrH> I have modified pg_hba.conf to allow any user on any host
DrH> access to any database but the error still remains.
Possible solution: have you started the database with the `-i' option
(to allow TCP/IP connections, which are used by the JDBC interface)?
Read the postmaster manual page for more details.
--
Eric Marsden
emarsden @ mail.dotcom.fr
It's elephants all the way down
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: emarsden@mail.dotcom.fr, drherlams@diandel.com
Subject: Re: [INTERFACES] JDBC Connection
In-Reply-To: <m2lnoev6pi.fsf@cook.onecert.fr>
* 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