Add autoReconnect=true for MariaDB
This commit is contained in:
parent
ef62a60f82
commit
a1521deaf6
1 changed files with 1 additions and 1 deletions
|
|
@ -288,7 +288,7 @@ public class MariaDBMapStorage extends MapStorage {
|
||||||
tableStandaloneFiles = prefix + "StandaloneFiles";
|
tableStandaloneFiles = prefix + "StandaloneFiles";
|
||||||
tableSchemaVersion = prefix + "SchemaVersion";
|
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");
|
Log.info("Opening MariaDB database " + hostname + ":" + port + "/" + database + " as map store");
|
||||||
try {
|
try {
|
||||||
Class.forName("org.mariadb.jdbc.Driver");
|
Class.forName("org.mariadb.jdbc.Driver");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue