JDBC Connection refused

From: Richard Heller <rheller(at)prime(dot)cs(dot)ohiou(dot)edu>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: JDBC Connection refused
Date: 1998-09-27 21:14:11
Message-ID: Pine.GSO.3.96.980927171351.26719D-100000@prime.cs.ohiou.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Stan Thomas 1998-09-28 07:08:29 subscribe
Previous Message Richard Heller 1998-09-27 17:22:14 Creating a database with JDBC