Add autoReconnect=true for MariaDB
This commit is contained in:
parent
314bfced8c
commit
f039257e19
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue