Re: jdbc connection string

From: Kris Jurka <books(at)ejurka(dot)com>
To: Bhushan Bhangale <bbhangale(at)Lastminute(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: jdbc connection string
Date: 2004-01-27 19:22:50
Message-ID: Pine.LNX.4.33.0401271419550.23089-100000@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Tue, 27 Jan 2004, Bhushan Bhangale wrote:

> Thanks Kris,
>
> But I am looking for a connection string for postgres in which I can specify
> username and password as well.

You can pass in the username and password by appending url parameters, for
example:

jdbc:postgresql://localhost:5432/mydb?user=fred&password=secret

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Thomas Hallgren 2004-01-27 20:42:53 Pl/Java 1.0.0.b now avaiable on Linux 386 and Cygwin
Previous Message David Wilbur 2004-01-27 19:07:05 Re: a little disillusioned