- Timestamp:
- 2004-12-06T11:44:03+13:00 (20 years ago)
- Location:
- trunk/greenstone3-extensions/gsdl-as/src/org/greenstone/gsdlas/database
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/greenstone3-extensions/gsdl-as/src/org/greenstone/gsdlas/database/DatabaseException.java
r8717 r8738 20 20 super(message, cause); 21 21 } 22 23 /** 24 * @param string 25 */ 26 public DatabaseException(String message) { 27 super(message); 28 } 22 29 } -
trunk/greenstone3-extensions/gsdl-as/src/org/greenstone/gsdlas/database/DatabaseManager.java
r8717 r8738 37 37 public Connection getDatabaseConnection() throws DatabaseException { 38 38 if(database == null) { 39 String connectionString = "jdbc:mysql://localhost/alerting ";39 String connectionString = "jdbc:mysql://localhost/alerting?user=gsdl3admin"; 40 40 try { 41 41 Class.forName("com.mysql.jdbc.Driver").newInstance(); 42 Connection connection= DriverManager.getConnection(connectionString);42 database = DriverManager.getConnection(connectionString); 43 43 } catch (Exception e) { 44 44 throw new DatabaseException("Could not establish connection to database (" + connectionString + ")", e);
Note:
See TracChangeset
for help on using the changeset viewer.