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

Re: jdbc connection string

From: Bhushan Bhangale <bbhangale(at)Lastminute(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: jdbc connection string
Date: 2004-01-28 10:47:42
Message-ID: C9590F897BFAD7119E63000BCD6820837BCB24@lmnukpriv.lastminute.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
It works Kris, thanks!

-----Original Message-----
From: Kris Jurka [mailto:books(at)ejurka(dot)com]
Sent: 27 January 2004 19:23
To: Bhushan Bhangale
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] jdbc connection string




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


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

               http://www.postgresql.org/docs/faqs/FAQ.html

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

pgsql-jdbc by date

Next:From: Kris JurkaDate: 2004-01-28 12:25:40
Subject: Re: Bug receiving NotificationResponse Message v3
Previous:From: Hans N├ĄtherDate: 2004-01-28 10:40:40
Subject: Bug receiving NotificationResponse Message v3

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