public void TestConnection() { DatabaseManager dbman = new DatabaseManager("127.0.0.1", 3306, "root", "root", "playertracker"); dbman.connect(); }
private void loadConfiguration(string filename) { this.config = Configuration.load(filename); this.connectionManager = new ConnectionManager(this.config.getValue<int>("port", 1534), this.config.getValue<string>("hostname", "127.0.0.1")); this.dbMan = new DatabaseManager(this.config.getValue<string>("db-hostname", "127.0.0.1"), this.config.getValue<int>("db-port", 3306), this.config.getValue<string>("db-user", "root"), this.config.getValue<string>("db-password", "root"), this.config.getValue<string>("db-database", "playertracker")); this.dbMan.connect(); }