Skip to content

Commit

Permalink
fix db runtime fail to find driver
Browse files Browse the repository at this point in the history
  • Loading branch information
zefir-git committed Jul 20, 2023
1 parent 6d4ace7 commit 50cd472
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public void onDisable() {
* Setup database source
*/
private void setupDbSource() {
config.setDriverClassName(org.mariadb.jdbc.Driver.class.getName());
if (getConfig().isString("db.jdbc")) config.setJdbcUrl(getConfig().getString("db.jdbc"));
else getLogger().severe("config: db.jdbc: not set");
if (getConfig().isString("db.user")) config.setUsername(getConfig().getString("db.user"));
Expand Down

0 comments on commit 50cd472

Please sign in to comment.