The moose likes JDBC and the fly likes how to print the username and password Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Reply locked New topic

how to print the username and password

siva sankar
Ranch Hand

Joined: Jul 13, 2006
Posts: 68
Hi all,

which commands are used to print the username and password in postgresql.
eg: Class.forName("org.jdbc.Driver");
Connection con = DriverManager.getConnection("jdbc:postgresql:","infinity","infinity");

Here username - infinity
password - infinity
command in postgresql to retrieve these two values in postgresql???

Thanks in advance...
Jeanne Boyarsky
internet detective

Joined: May 26, 2003
Posts: 30076

I'm closing this thread since it is a duplicate of this one. In the future, please do not start new threads for the same question.

[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
jQuery in Action, 2nd edition
subject: how to print the username and password
Similar Threads
WA #1.....word association
Security Identity in JMS
to retrieve database username and password using jdbc
Login sessions
problem with connecting to a SQLServer database