diff --git a/src/main/java/fr/xephi/authme/datasource/SQLite_HIKARI.java b/src/main/java/fr/xephi/authme/datasource/SQLite_HIKARI.java index 0a9eac077..de91d2bb4 100644 --- a/src/main/java/fr/xephi/authme/datasource/SQLite_HIKARI.java +++ b/src/main/java/fr/xephi/authme/datasource/SQLite_HIKARI.java @@ -122,9 +122,8 @@ public class SQLite_HIKARI implements DataSource { throws ClassNotFoundException, IllegalArgumentException { HikariConfig config = new HikariConfig(); config.setPoolName("AuthMeSQLitePool"); - config.setDataSourceClassName("org.sqlite.javax.SQLiteConnectionPoolDataSource"); + config.setDriverClassName("org.sqlite.JDBC"); config.setJdbcUrl("jdbc:sqlite:plugins/AuthMe/" + database + ".db"); - config.setInitializationFailFast(true); // Don't start the plugin if the database is unavariable config.setConnectionTestQuery("SELECT 1"); config.setMaxLifetime(180000); // 3 Min config.setIdleTimeout(60000); // 1 Min diff --git a/src/main/resources/config.yml b/src/main/resources/config.yml index dda0cb84c..d66c5a141 100644 --- a/src/main/resources/config.yml +++ b/src/main/resources/config.yml @@ -1,5 +1,6 @@ DataSource: - # Can be set to: sqlite, mysql + # Can be set to: sqlite, sqlitehikari, mysql + # sqlitehikari should be more fast than normal sqlite but it's an experimental feature! backend: sqlite # Enable database caching caching: true