Changeset 97 for trunk/CrossPare/src
- Timestamp:
- 05/13/16 08:53:25 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/CrossPare/src/de/ugoe/cs/cpdp/eval/MySQLResultStorage.java
r96 r97 105 105 connectionPool.setPassword(dbPass); 106 106 connectionPool.setUrl("jdbc:mysql://" + dbHost + ":" + dbPort + "/" + dbName); 107 /*108 try {109 Properties connectionProperties = new Properties();110 connectionProperties.put("user", dbUser);111 connectionProperties.put("password", dbPass);112 connectionProperties.put("autoReconnect", "true");113 connectionProperties.put("maxReconnects", "10000");114 Class.forName("com.mysql.jdbc.Driver");115 116 con = DriverManager.getConnection("jdbc:mysql://" + dbHost + ":" + dbPort + "/" +117 dbName, connectionProperties);118 }119 catch (ClassNotFoundException e) {120 Console.printerr("JDBC driver not found");121 }122 catch (SQLException e) {123 Console.printerr("Problem with MySQL connection: ");124 Console.printerr("SQLException: " + e.getMessage());125 Console.printerr("SQLState: " + e.getSQLState());126 Console.printerr("VendorError: " + e.getErrorCode());127 }128 */129 107 } 130 108
Note: See TracChangeset
for help on using the changeset viewer.