From b1a4e64288a4c3b009a1cf11543194b016866de4 Mon Sep 17 00:00:00 2001 From: Zrips Date: Mon, 8 Aug 2022 14:45:27 +0300 Subject: [PATCH] MySQL database creation fix --- src/main/java/com/gamingmesh/jobs/dao/JobsMySQL.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/gamingmesh/jobs/dao/JobsMySQL.java b/src/main/java/com/gamingmesh/jobs/dao/JobsMySQL.java index edf865e2..fa84c7c6 100644 --- a/src/main/java/com/gamingmesh/jobs/dao/JobsMySQL.java +++ b/src/main/java/com/gamingmesh/jobs/dao/JobsMySQL.java @@ -8,6 +8,8 @@ import java.sql.Statement; import com.gamingmesh.jobs.Jobs; import com.gamingmesh.jobs.dao.JobsManager.DataBaseType; +import net.Zrips.CMILib.Logs.CMIDebug; + public class JobsMySQL extends JobsDAO { private static String path = ""; @@ -29,6 +31,7 @@ public class JobsMySQL extends JobsDAO { + "?maxReconnects=1&characterEncoding=" + characterEncoding + "&encoding=" + encoding + "&useUnicode=true&autoReconnect=" + autoReconnect + "&useSSL=" + ssl + "&verifyServerCertificate=" + certificate, username, password, prefix); + this.database = database; setDbType(DataBaseType.MySQL); }