Skip to content

The Unified and Autonomous Development Platform

Make MySQL driver and MariaDB driver co-exists

Robin Shen63a198f68d87
diff --git a/core/pom.xml b/core/pom.xml
index 27d4fcd7ed..9878a8a7f5 100644
--- a/core/pom.xml
+++ b/core/pom.xml
@@ -242,6 +242,11 @@
<artifactId>mysql-connector-java</artifactId>
<version>8.0.12</version>
</dependency>
+ <dependency>
+ <groupId>org.mariadb.jdbc</groupId>
+ <artifactId>mariadb-java-client</artifactId>
+ <version>2.3.0</version>
+ </dependency>
<dependency>
<groupId>org.dom4j</groupId>
<artifactId>dom4j</artifactId>
diff --git a/product/system/conf/hibernate.properties b/product/system/conf/hibernate.properties
index 2228071bc5..1cc18bdd14 100644
--- a/product/system/conf/hibernate.properties
+++ b/product/system/conf/hibernate.properties
@@ -22,7 +22,7 @@ hibernate.connection.password=
#hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
#hibernate.connection.driver_class=com.mysql.cj.jdbc.Driver
-#hibernate.connection.url=jdbc:mysql://localhost:3306/onedev?serverTimezone=UTC&useSSL=false
+#hibernate.connection.url=jdbc:mysql://localhost:3306/onedev?serverTimezone=UTC&useSSL=false&disableMariaDbDriver
#hibernate.connection.username=root
#hibernate.connection.password=root
@@ -39,7 +39,7 @@ hibernate.connection.password=
#hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
#hibernate.connection.driver_class=org.mariadb.jdbc.Driver
-#hibernate.connection.url=jdbc:mysql://localhost:3306/onedev
+#hibernate.connection.url=jdbc:mariadb://localhost:3306/onedev
#hibernate.connection.username=root
#hibernate.connection.password=root