Received: from cook.onecert.fr (cook.onecert.fr [134.212.189.43]) by hub.org (8.8.8/8.7.5) with SMTP id JAA18737 for ; Mon, 24 Aug 1998 09:42:20 -0400 (EDT) Received: (qmail 3724 invoked by uid 501); 24 Aug 1998 13:40:26 -0000 Sender: ecm@cook.onecert.fr To: "Dr. Herrera" Cc: Subject: Re: [INTERFACES] JDBC Connection References: <199808241138.NAA02535@diandel.com> X-Eric-Conspiracy: there is no conspiracy. X-Attribution: ecm X-Home-Page: http://www.chez.com/emarsden/ Reply-To: emarsden@mail.dotcom.fr From: Eric Marsden Date: 24 Aug 1998 15:40:25 +0200 In-Reply-To: "Dr. Herrera"'s message of "Mon, 24 Aug 1998 14:14:04 +0200" Message-ID: Lines: 24 X-Mailer: Gnus v5.6.22/Emacs 19.34 >>>>> "DrH" == Herrera 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