File tree Expand file tree Collapse file tree
src/main/java/com/dre/brewery/storage/impls Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737import com .dre .brewery .utility .FutureUtil ;
3838import com .dre .brewery .utility .Logging ;
3939import com .zaxxer .hikari .HikariConfig ;
40+ import com .zaxxer .hikari .HikariDataSource ;
4041import org .jetbrains .annotations .Nullable ;
4142
4243import javax .sql .DataSource ;
@@ -72,8 +73,10 @@ public MySQLStorage(ConfiguredDataManager record) throws StorageInitException {
7273 String jdbcUrl = URL + record .getAddress ()
7374 + "/" + record .getDatabase ();
7475 HikariConfig config = new HikariConfig ();
76+ config .setPassword (record .getPassword ());
77+ config .setUsername (record .getUsername ());
7578 config .setJdbcUrl (jdbcUrl );
76- this .source = config . getDataSource ( );
79+ this .source = new HikariDataSource ( config );
7780 this .tablePrefix = record .getTablePrefix ();
7881 this .serializer = new SQLDataSerializer ();
7982
You can’t perform that action at this time.
0 commit comments