This week's book giveaway is in the JavaFX forum.
We're giving away four copies of Introducing JavaFX 8 Programming and have Herbert Schildt on-line!
See this thread for details.
The moose likes JDBC and Relational Databases 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 Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Reply locked New topic
Author

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:192.168.1.112//databasename","infinity","infinity");

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

Thanks in advance...
Siva
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 32609
    
215

Siva,
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.


[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to print the username and password
 
It's not a secret anymore!