Received: from giasdl01.vsnl.net.in (giasdl01.vsnl.net.in [202.54.15.1]) by hub.org (8.8.8/8.8.8) with SMTP id UAA22438 for ; Mon, 28 Sep 1998 20:02:32 -0400 (EDT) (envelope-from srswamy@giasdl01.vsnl.net.in) Received: from [202.54.98.226] by giasdl01.vsnl.net.in; (5.65v3.2/1.1.8.2/03May97-0227AM) id AA17197; Tue, 29 Sep 1998 05:31:52 +0500 Message-Id: <360F9951.A810DA92@giasdl01.vsnl.net.in> Date: Mon, 28 Sep 1998 19:42:34 +0530 From: "S.Ramaswamy" Organization: Matrix Infotech Syndicate X-Mailer: Mozilla 4.05 [en] (Win95; I) Mime-Version: 1.0 To: "pgsql-interfaces@postgreSQL.org" Cc: Richard Heller Subject: Re: [INTERFACES] JDBC Connection refused References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ensure that you start postmaster with -i option to enable TCP/IP. Refer to FAQ of http://www.retep.org.uk/postgres/ for details Regards S.Ramaswamy Richard Heller wrote: > Hi, > > I created a database using createdb and it got created correctly. > However, I'm having trouble connecting to it with JDBC. I named the > database "mydb" and the url I'm using in JDBC to connect is > "jdbc:postgresql:mydb". I'm getting > > java.sql.SQLException: Connection failed: java.net.ConnectException: > Connection refused > > at runtime. What causes this and how do I fix it? > > Thanks, > Rich