mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-24 17:47:40 +01:00
Add autoReconnect=true for MariaDB
This commit is contained in:
parent
314bfced8c
commit
f039257e19
@ -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…
Reference in New Issue
Block a user