Skip to content

Commit 7dca5a1

Browse files
committed
fix: updated
1 parent 84a3d06 commit 7dca5a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/code/advancedsql/MySQL.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public MySQL(String host, int port, String username, String password, String dat
5050
* @throws SQLException Exception when something goes wrong.
5151
*/
5252
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");
53+
this(host, port, username, password, database, "useUnicode=true&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC&autoReconnect=true");
5454
}
5555

5656
private void connect(String host, int port, String username, String password, String database, String attributes) throws SQLException {

0 commit comments

Comments
 (0)