Re: connection problem in postgresql

From: Luckys <plpgsql(at)gmail(dot)com>
To: "Majo George Cheruvathur" <majogeorges(at)gmail(dot)com>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: connection problem in postgresql
Date: 2006-04-17 04:58:02
Message-ID: b80d582c0604162158q60769f69g56845283a71295bf@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

String url = "jdbc:postgresql://localhost/test";
Properties props = new Properties();
props.setProperty("user","fred");
props.setProperty("password","secret");
props.setProperty("ssl","true");
Connection conn = DriverManager.getConnection(url, props);

although there are different forms for the url connection string.

Do no forget to have the *.jar in your classpath.

You'd even like to look at this, http://pugs.postgresql.org/uae/

As rightly pointed out by Tom, please choose appropriate mailing list for
the respective problem,

cool.

Luckys.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Roberto Castro 2006-04-17 19:01:21 syntax error
Previous Message Tom Lane 2006-04-17 02:52:18 Re: BUG #2386: pg_restore doesn't restore large objects