Add autoReconnect=true for MariaDB

This commit is contained in:
Mike Primm 2020-05-21 19:56:22 -05:00
parent 314bfced8c
commit f039257e19

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");