Add autoReconnect=true for MariaDB

This commit is contained in:
Mike Primm 2020-05-21 19:56:22 -05:00
parent 314bfced8c
commit f039257e19
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ public class MariaDBMapStorage extends MapStorage {
tableStandaloneFiles = prefix + "StandaloneFiles";
tableSchemaVersion = prefix + "SchemaVersion";
connectionString = "jdbc:mariadb://" + hostname + ":" + port + "/" + database + "?allowReconnect=true";
connectionString = "jdbc:mariadb://" + hostname + ":" + port + "/" + database + "?allowReconnect=true&autoReconnect=true";
Log.info("Opening MariaDB database " + hostname + ":" + port + "/" + database + " as map store");
try {
Class.forName("org.mariadb.jdbc.Driver");