mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 05:05:16 +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