Advertisement
Guest User

Untitled

a guest
May 3rd, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. private void connectMySQLServer() {
  2. try {
  3. connection = DriverManager.getConnection("jdbc:mysql://" + ip + ":" + port + "/" + dbName + "?verifyServerCertificate=false&useSSL=false&autoReconnect=true&useUnicode=true&characterEncoding=utf8", usrName, password);
  4. } catch (SQLException exc) {
  5. Universal.get().log(
  6. " \n"
  7. + " MySQL-Error\n"
  8. + " Could not connect to MySQL-Server!\n"
  9. + " Disabling plugin!\n"
  10. + " Check your MySQL.yml\n"
  11. + " Skype: Leoko33\n"
  12. + " Issue tracker: https://github.com/DevLeoko/AdvancedBan/issues \n"
  13. + " \n"
  14. );
  15. failedMySQL = true;
  16. }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement