mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-24 03:05:28 +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";
|
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…
Reference in New Issue
Block a user