pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedJDBC driver and postgreSQL
2+ messages / 2 participants
[nested] [flat]
* JDBC driver and postgreSQL
@ 1998-05-06 18:33 Agus Mingtarja <mingtarja@hdz-ima.rwth-aachen.de>
1998-05-07 05:54 ` Re: [INTERFACES] JDBC driver and postgreSQL Peter T Mount <pgint@maidast.demon.co.uk>
0 siblings, 1 reply; 2+ messages in thread
From: Agus Mingtarja @ 1998-05-06 18:33 UTC (permalink / raw)
To: pgsql-interfaces
Hi All,
i have postgresql 6.3.2 (Linux 2.0 debian) istalled, and i can make
database now. My question ist:
How can i install the JDBC driver? (i use JDK 1.1.5)
Ist my programm below correct?
...
try
{ Class.forName("postgresql.driver");
// force loading of driver
String url = "jdbc:postgresql://localhost/database";
String user = "nobody";
String password = "password";
Connection con = DriverManager.getConnection(url, user,
password);
Statement stmt = con.createStatement();
...
that's all. Please give me a tip. Thank You for the tip!
--
Agus MINGTARJA ..........................
RWTH-Aachen GERMANY .....................
mingtarja@hdz-ima.RWTH-Aachen.de ........
http://www.geocities.com/Athens/8668/ ...
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [INTERFACES] JDBC driver and postgreSQL
1998-05-06 18:33 JDBC driver and postgreSQL Agus Mingtarja <mingtarja@hdz-ima.rwth-aachen.de>
@ 1998-05-07 05:54 ` Peter T Mount <pgint@maidast.demon.co.uk>
0 siblings, 0 replies; 2+ messages in thread
From: Peter T Mount @ 1998-05-07 05:54 UTC (permalink / raw)
To: Agus Mingtarja <mingtarja@hdz-ima.rwth-aachen.de>; +Cc: pgsql-interfaces
On Wed, 6 May 1998, Agus Mingtarja wrote:
> Hi All,
> i have postgresql 6.3.2 (Linux 2.0 debian) istalled, and i can make
> database now. My question ist:
> How can i install the JDBC driver? (i use JDK 1.1.5)
To install, put the postgresql.jar into your classpath.
There are instructions in the README, and in the FAQ
http://www.retep.org.uk/postgres
> Ist my programm below correct?
Looks ok, except drop the second : in the JDBC URL. It should only be
there if a non standard port number is also given
>
> ...
> try
> { Class.forName("postgresql.driver");
> // force loading of driver
> String url = "jdbc:postgresql://localhost/database";
String url = "jdbc:postgresql//localhost/database";
> String user = "nobody";
> String password = "password";
> Connection con = DriverManager.getConnection(url, user,
> password);
> Statement stmt = con.createStatement();
> ...
>
> that's all. Please give me a tip. Thank You for the tip!
--
Peter T Mount peter@retep.org.uk or petermount@earthling.net
Main Homepage: http://www.retep.org.uk
************ Someday I may rebuild this signature completely ;-) ************
Work Homepage: http://www.maidstone.gov.uk Work EMail: peter@maidstone.gov.uk
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1998-05-07 05:54 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1998-05-06 18:33 JDBC driver and postgreSQL Agus Mingtarja <mingtarja@hdz-ima.rwth-aachen.de>
1998-05-07 05:54 ` Peter T Mount <pgint@maidast.demon.co.uk>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox