Ignore:
Timestamp:
2004-12-06T11:44:03+13:00 (19 years ago)
Author:
schweer
Message:

user authentication works; user information and subscriptions/predicates are stored to thedatabase

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/extensions/gsdl-as/src/org/greenstone/gsdlas/database/DatabaseManager.java

    r8717 r8738  
    3737    public Connection getDatabaseConnection() throws DatabaseException {
    3838        if(database == null) {
    39             String connectionString = "jdbc:mysql://localhost/alerting";
     39            String connectionString = "jdbc:mysql://localhost/alerting?user=gsdl3admin";
    4040            try {
    4141                Class.forName("com.mysql.jdbc.Driver").newInstance();
    42                 Connection connection = DriverManager.getConnection(connectionString);
     42                database = DriverManager.getConnection(connectionString);
    4343            } catch (Exception e) {
    4444                throw new DatabaseException("Could not establish connection to database (" + connectionString + ")", e);
Note: See TracChangeset for help on using the changeset viewer.