Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void connectMySQLServer() {
- try {
- connection = DriverManager.getConnection("jdbc:mysql://" + ip + ":" + port + "/" + dbName + "?verifyServerCertificate=false&useSSL=false&autoReconnect=true&useUnicode=true&characterEncoding=utf8", usrName, password);
- } catch (SQLException exc) {
- Universal.get().log(
- " \n"
- + " MySQL-Error\n"
- + " Could not connect to MySQL-Server!\n"
- + " Disabling plugin!\n"
- + " Check your MySQL.yml\n"
- + " Skype: Leoko33\n"
- + " Issue tracker: https://github.com/DevLeoko/AdvancedBan/issues \n"
- + " \n"
- );
- failedMySQL = true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement