From: | Peter T Mount <peter(at)retep(dot)org(dot)uk> |
---|---|
To: | Richard Heller <rheller(at)prime(dot)cs(dot)ohiou(dot)edu> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: [INTERFACES] JDBC Connection refused |
Date: | 1998-09-28 18:21:34 |
Message-ID: | Pine.LNX.3.96.980928192101.495B-100000@maidast.retep.org.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces |
On Sun, 27 Sep 1998, 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?
Connection refused is always caused by running postmaster without -i
--
Peter T Mount peter(at)retep(dot)org(dot)uk
Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgres
Java PDF Generator: http://www.retep.org.uk/pdf
From | Date | Subject | |
---|---|---|---|
Next Message | Cary B. O'Brien | 1998-09-28 19:17:08 | Re: [INTERFACES] Creating a database with JDBC |
Previous Message | S.Ramaswamy | 1998-09-28 14:12:34 | Re: [INTERFACES] JDBC Connection refused |