|
@@ -10,6 +10,7 @@ import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.format.DateTimeFormatter;
|
|
import java.time.format.DateTimeFormatter;
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
|
+import java.util.Properties;
|
|
|
import java.util.logging.Level;
|
|
import java.util.logging.Level;
|
|
|
import java.util.logging.Logger;
|
|
import java.util.logging.Logger;
|
|
|
|
|
|
|
@@ -392,7 +393,11 @@ public class Mysql implements Serializable {
|
|
|
protected Connection getConnection() {
|
|
protected Connection getConnection() {
|
|
|
if (conn == null) {
|
|
if (conn == null) {
|
|
|
try {
|
|
try {
|
|
|
- conn = DriverManager.getConnection(URL + DATABASE + TIMEZONE_FIX, USERNAME, PASSWORD);
|
|
|
|
|
|
|
+ Properties prop = new Properties();
|
|
|
|
|
+ prop.put("user", USERNAME);
|
|
|
|
|
+ prop.put("password", PASSWORD);
|
|
|
|
|
+ prop.put("useSSL", "false");
|
|
|
|
|
+ conn = DriverManager.getConnection(URL + DATABASE + TIMEZONE_FIX, prop);
|
|
|
} catch (final SQLException e) {
|
|
} catch (final SQLException e) {
|
|
|
throw new RuntimeException(e.getMessage(), e);
|
|
throw new RuntimeException(e.getMessage(), e);
|
|
|
}
|
|
}
|