mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-12 21:44:22 +01:00
Add strict mode
This commit is contained in:
parent
fa31fd92b8
commit
7ec46e2940
@ -96,7 +96,7 @@ public class MySQL implements DataSource {
|
|||||||
ds = new HikariDataSource();
|
ds = new HikariDataSource();
|
||||||
ds.setPoolName("AuthMeMYSQLPool");
|
ds.setPoolName("AuthMeMYSQLPool");
|
||||||
ds.setDriverClassName("com.mysql.jdbc.Driver");
|
ds.setDriverClassName("com.mysql.jdbc.Driver");
|
||||||
ds.setJdbcUrl("jdbc:mysql://" + this.host + ":" + this.port + "/" + this.database + "?rewriteBatchedStatements=true");
|
ds.setJdbcUrl("jdbc:mysql://" + this.host + ":" + this.port + "/" + this.database + "?rewriteBatchedStatements=true&jdbcCompliantTruncation=false");
|
||||||
ds.setUsername(this.username);
|
ds.setUsername(this.username);
|
||||||
ds.setPassword(this.password);
|
ds.setPassword(this.password);
|
||||||
ds.setInitializationFailFast(true); // Don't start the plugin if the database is unavailable
|
ds.setInitializationFailFast(true); // Don't start the plugin if the database is unavailable
|
||||||
|
Loading…
Reference in New Issue
Block a user