Re: JDBC prob. Continued

From: Christopher Farley <chris(at)northernbrewer(dot)com>
To: tony <tony(at)uickarate(dot)com>
Cc: pgsql-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: JDBC prob. Continued
Date: 2000-11-16 21:09:10
Message-ID: Pine.BSF.4.21.0011161505570.11653-100000@kraeusen.nbrewer.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

> so I've changed by getConnection to
> DriverManager.getConnection("jdbc:postgresql:database_name", "postgres",
> "password");

The above URL is not correct, it should be
jdbc:postgresql://localhost:5432/database_name

Note the two slashes after jdbc:postgresql:

I am not sure if localhost:5432 is required, but it won't hurt.

----
Christopher Farley
Northern Brewer / 1150 Grand Avenue / St. Paul, MN 55105
www.northernbrewer.com

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Michael Miyabara-McCaskey 2000-11-16 22:11:08 ODBC Windows driver corrupts data?
Previous Message Bruce Momjian 2000-11-16 20:58:14 Re: no meaningful way to determine fe or be version?