Skip site navigation (1) Skip section navigation (2)

RE: JDBC prob. Continued

From: Peter Mount <petermount(at)maidstone(dot)gov(dot)uk>
To: "'Christopher Farley'" <chris(at)northernbrewer(dot)com>, tony <tony(at)uickarate(dot)com>
Cc: pgsql-interfaces <pgsql-interfaces(at)postgresql(dot)org>
Subject: RE: JDBC prob. Continued
Date: 2000-11-17 07:28:54
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-interfaces
It doesn't hurt, but localhost:5432 is the default when those two parameters
are missing.


Peter Mount
Enterprise Support Officer, Maidstone Borough Council
Email: petermount(at)maidstone(dot)gov(dot)uk
All views expressed within this email are not the views of Maidstone Borough

-----Original Message-----
From: Christopher Farley [mailto:chris(at)northernbrewer(dot)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

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

pgsql-interfaces by date

Next:From: Max KhonDate: 2000-11-17 07:35:53
Subject: Re: ODBC Maintainer?
Previous:From: Peter MountDate: 2000-11-17 07:27:12
Subject: RE: JDBC prob. Continued

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group