We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a3d06 commit 7dca5a1Copy full SHA for 7dca5a1
src/main/java/com/code/advancedsql/MySQL.java
@@ -50,7 +50,7 @@ public MySQL(String host, int port, String username, String password, String dat
50
* @throws SQLException Exception when something goes wrong.
51
*/
52
public MySQL(String host, int port, String username, String password, String database) throws SQLException {
53
- this(host, port, username, password, database, "useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC");
+ this(host, port, username, password, database, "useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC&autoReconnect=true");
54
}
55
56
private void connect(String host, int port, String username, String password, String database, String attributes) throws SQLException {
0 commit comments