Re: jdbc connection string - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: jdbc connection string
Date
Msg-id Pine.LNX.4.33.0401271419550.23089-100000@leary.csoft.net
Whole thread Raw
In response to Re: jdbc connection string  (Bhushan Bhangale <bbhangale@Lastminute.com>)
List 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


pgsql-jdbc by date:

Previous
From: David Wilbur
Date:
Subject: Re: a little disillusioned
Next
From: Paul Thomas
Date:
Subject: Re: a little disillusioned