List:Commits« Previous MessageNext Message »
From:tony.bedford Date:June 22 2010 4:31pm
Subject:svn commit - mysqldoc@docsrva: r21377 - trunk/sample-programs/connector-j-tutorials
View as plain text  
Author: tbedford
Date: 2010-06-22 18:31:02 +0200 (Tue, 22 Jun 2010)
New Revision: 21377

Log:
Clear password for convenience

Modified:
   trunk/sample-programs/connector-j-tutorials/BasicQuery.java
   trunk/sample-programs/connector-j-tutorials/BasicUpdate.java
   trunk/sample-programs/connector-j-tutorials/DataSourceConnection.java
   trunk/sample-programs/connector-j-tutorials/DriverManagerConnection.java


Modified: trunk/sample-programs/connector-j-tutorials/BasicQuery.java
===================================================================
--- trunk/sample-programs/connector-j-tutorials/BasicQuery.java	2010-06-22 16:13:17 UTC (rev 21376)
+++ trunk/sample-programs/connector-j-tutorials/BasicQuery.java	2010-06-22 16:31:02 UTC (rev 21377)
Changed blocks: 1, Lines Added: 1, Lines Deleted: 1; 782 bytes

@@ -12,7 +12,7 @@
         try {
             Class.forName("com.mysql.jdbc.Driver").newInstance();
             String url = "jdbc:mysql://localhost/world";
-            conn = DriverManager.getConnection(url, "root", "******");
+            conn = DriverManager.getConnection(url, "root", "");
         
             Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
                                      ResultSet.CONCUR_READ_ONLY);


Modified: trunk/sample-programs/connector-j-tutorials/BasicUpdate.java
===================================================================
--- trunk/sample-programs/connector-j-tutorials/BasicUpdate.java	2010-06-22 16:13:17 UTC (rev 21376)
+++ trunk/sample-programs/connector-j-tutorials/BasicUpdate.java	2010-06-22 16:31:02 UTC (rev 21377)
Changed blocks: 1, Lines Added: 1, Lines Deleted: 1; 785 bytes

@@ -12,7 +12,7 @@
         try {
             Class.forName("com.mysql.jdbc.Driver").newInstance();
             String url = "jdbc:mysql://localhost/world";
-            conn = DriverManager.getConnection(url, "root", "******");
+            conn = DriverManager.getConnection(url, "root", "");
         
             Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
                                      ResultSet.CONCUR_UPDATABLE);


Modified: trunk/sample-programs/connector-j-tutorials/DataSourceConnection.java
===================================================================
--- trunk/sample-programs/connector-j-tutorials/DataSourceConnection.java	2010-06-22 16:13:17 UTC (rev 21376)
+++ trunk/sample-programs/connector-j-tutorials/DataSourceConnection.java	2010-06-22 16:31:02 UTC (rev 21377)
Changed blocks: 1, Lines Added: 1, Lines Deleted: 1; 621 bytes

@@ -22,7 +22,7 @@
             ds.setDatabase ("world");
             ds.setHost("localhost");
             ds.setUser("root")
-            ds.setPassword("******");
+            ds.setPassword("");
             
             Connection con = ds.getConnection(); 
 


Modified: trunk/sample-programs/connector-j-tutorials/DriverManagerConnection.java
===================================================================
--- trunk/sample-programs/connector-j-tutorials/DriverManagerConnection.java	2010-06-22 16:13:17 UTC (rev 21376)
+++ trunk/sample-programs/connector-j-tutorials/DriverManagerConnection.java	2010-06-22 16:31:02 UTC (rev 21377)
Changed blocks: 1, Lines Added: 1, Lines Deleted: 1; 828 bytes

@@ -10,7 +10,7 @@
         try {
             Class.forName("com.mysql.jdbc.Driver").newInstance();
             String url = "jdbc:mysql://localhost/world";
-            conn = DriverManager.getConnection(url, "root", "******");
+            conn = DriverManager.getConnection(url, "root", "");
         } catch (SQLException ex) {
           System.out.println("SQLException: " + ex.getMessage());
           System.out.println("SQLState: " + ex.getSQLState());


Thread
svn commit - mysqldoc@docsrva: r21377 - trunk/sample-programs/connector-j-tutorialstony.bedford22 Jun