From 267fec5ef03acfcf59fe50ec52406933a07ac47a Mon Sep 17 00:00:00 2001 From: Manuel Bentele Date: Wed, 22 Dec 2021 13:28:07 +0100 Subject: Update Mysql Java driver class path --- src/main/java/org/openslx/imagemaster/db/Database.java | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main/java/org/openslx/imagemaster/db/Database.java b/src/main/java/org/openslx/imagemaster/db/Database.java index 7ff12a4..0832649 100644 --- a/src/main/java/org/openslx/imagemaster/db/Database.java +++ b/src/main/java/org/openslx/imagemaster/db/Database.java @@ -78,15 +78,8 @@ public class Database try { Class.forName( "com.mysql.cj.jdbc.Driver" ).newInstance(); } catch ( Exception e1 ) { - LOGGER.warn( "Cannot get mysql JDBC driver (new path)", e1 ); - LOGGER.info( "Trying old path..." ); - try { - Class.forName( "com.mysql.jdbc.Driver" ).newInstance(); - } catch ( Exception e2 ) { - LOGGER.fatal( "Cannot get mysql JDBC driver (old path)", e2 ); - LOGGER.fatal( "Bailing!" ); - System.exit( 1 ); - } + LOGGER.fatal( "Cannot get mysql JDBC driver", e1 ); + System.exit( 1 ); } } -- cgit v1.2.3-55-g7522