summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src
diff options
context:
space:
mode:
authorSimon Rettberg2022-10-18 16:59:51 +0200
committerSimon Rettberg2022-10-18 16:59:51 +0200
commitb0429dc28620ea34763d48c5608d90dce6cd1efa (patch)
treea3c08230636ee092b4713415620284a079000f4b /dozentenmodulserver/src
parent[server] Switch from mysql to mariadb connector (diff)
downloadtutor-module-b0429dc28620ea34763d48c5608d90dce6cd1efa.tar.gz
tutor-module-b0429dc28620ea34763d48c5608d90dce6cd1efa.tar.xz
tutor-module-b0429dc28620ea34763d48c5608d90dce6cd1efa.zip
[server] Use mariadb class name
Diffstat (limited to 'dozentenmodulserver/src')
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/Database.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/Database.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/Database.java
index a4a783dd..17d7a6c7 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/Database.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/database/Database.java
@@ -30,7 +30,7 @@ public class Database {
static {
try {
// Hack for some Java versions to register and instantiate the MySQL connection driver
- Class.forName("com.mysql.cj.jdbc.Driver").newInstance();
+ Class.forName("org.mariadb.jdbc.Driver").newInstance();
} catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {
LOGGER.fatal("Cannot get mysql JDBC driver!", e);
System.exit(1);
@@ -65,7 +65,7 @@ public class Database {
}
try {
// Create fresh connection
- Connection rawConnection = DriverManager.getConnection(Configuration.getDbUri(),
+ Connection rawConnection = DriverManager.getConnection(Configuration.getDbUri() + "&permitMysqlScheme",
Configuration.getDbUsername(), Configuration.getDbPassword());
// By convention in our program we don't want auto commit
rawConnection.setAutoCommit(false);