public class MySqlDatabase extends CachedDatabase
| Constructor and Description |
|---|
MySqlDatabase(Output output,
File pluginFolder,
String host,
int port,
String databaseName,
String username)
Instantiates a new MySql database without need for password.
|
MySqlDatabase(Output output,
File pluginFolder,
String host,
int port,
String databaseName,
String username,
String password)
Instantiates a new MySql database.
|
enqueue, getOwner, runpublic MySqlDatabase(Output output, File pluginFolder, String host, int port, String databaseName, String username, String password) throws SQLException, ClassNotFoundException
output - the outputpluginFolder - the plugin folderhost - the hostport - the portdatabaseName - the database nameusername - the usernamepassword - the passwordSQLException - if connection failsClassNotFoundException - if mysql driver class is missingpublic MySqlDatabase(Output output, File pluginFolder, String host, int port, String databaseName, String username) throws SQLException, ClassNotFoundException
output - the outputpluginFolder - the plugin folderhost - the hostport - the portdatabaseName - the database nameusername - the usernameSQLException - if connection failsClassNotFoundException - if mysql driver class is missingCopyright © 2015. All rights reserved.