RE: JDBC prob. Continued - Mailing list pgsql-interfaces

From Peter Mount
Subject RE: JDBC prob. Continued
Date
Msg-id 1B3D5E532D18D311861A00600865478CF1B561@exchange1.nt.maidstone.gov.uk
Whole thread Raw
In response to JDBC prob. Continued  ("tony" <tony@uickarate.com>)
List pgsql-interfaces
It doesn't hurt, but localhost:5432 is the default when those two parameters
are missing.

Peter

-- 
Peter Mount
Enterprise Support Officer, Maidstone Borough Council
Email: petermount@maidstone.gov.uk
WWW: http://www.maidstone.gov.uk
All views expressed within this email are not the views of Maidstone Borough
Council


-----Original Message-----
From: Christopher Farley [mailto:chris@northernbrewer.com]
Sent: Thursday, November 16, 2000 9:09 PM
To: tony
Cc: pgsql-interfaces
Subject: Re: [INTERFACES] JDBC prob. Continued


> 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    




pgsql-interfaces by date:

Previous
From: Peter Mount
Date:
Subject: RE: JDBC Problem
Next
From: Peter Mount
Date:
Subject: RE: JDBC prob. Continued