From b616951e2353f4eb0eb67e36a8285cb4c94105fc Mon Sep 17 00:00:00 2001 From: manuelgu Date: Sun, 16 Apr 2017 22:17:17 +0200 Subject: [PATCH] Added useSSL=false to JDBC connection URL This is required according to MySQL 5.5.45+, 5.6.26+ and 5.7.6+. --- .../java/com/intellectualcrafters/plot/database/MySQL.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Core/src/main/java/com/intellectualcrafters/plot/database/MySQL.java b/Core/src/main/java/com/intellectualcrafters/plot/database/MySQL.java index 2163dc444..4a1256c25 100644 --- a/Core/src/main/java/com/intellectualcrafters/plot/database/MySQL.java +++ b/Core/src/main/java/com/intellectualcrafters/plot/database/MySQL.java @@ -45,7 +45,7 @@ public class MySQL extends Database { public Connection forceConnection() throws SQLException, ClassNotFoundException { Class.forName("com.mysql.jdbc.Driver"); this.connection = - DriverManager.getConnection("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database, this.user, this.password); + DriverManager.getConnection("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database + "?useSSL=false", this.user, this.password); return this.connection; } @@ -55,9 +55,9 @@ public class MySQL extends Database { return this.connection; } Class.forName("com.mysql.jdbc.Driver"); - PS.debug("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database); + PS.debug("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database + "?useSSL=false"); this.connection = - DriverManager.getConnection("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database, this.user, this.password); + DriverManager.getConnection("jdbc:mysql://" + this.hostname + ':' + this.port + '/' + this.database + "?useSSL=false", this.user, this.password); return this.connection; }