JDBC Connection refused - Mailing list pgsql-interfaces

From Richard Heller
Subject JDBC Connection refused
Date
Msg-id Pine.GSO.3.96.980927171351.26719D-100000@prime.cs.ohiou.edu
Whole thread Raw
Responses Re: [INTERFACES] JDBC Connection refused  (Peter T Mount <peter@retep.org.uk>)
List pgsql-interfaces
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



pgsql-interfaces by date:

Previous
From: Richard Heller
Date:
Subject: Creating a database with JDBC
Next
From: "Stan Thomas"
Date:
Subject: subscribe