Installation

The recommended way to install the MariaDB driver is using a package manager like Maven or Gradle.

Maven

Add the following dependency to your pom.xml file

<dependency> 
<groupId>org.mariadb.jdbc</groupId>
<artifactId>mariadb-java-client</artifactId>
<version>xxx</version>
</dependency>

Replace "xxx" with a version number. See requirements to select a version according to the Java version.

Gradle

Add the following dependency to your gradle configuration file build.gradle

implementation 'org.mariadb.jdbc:mariadb-java-client:xxx'

Replace "xxx" with a version number. See requirements to select a version according to the Java version.

Gradle configuration.

Using the JAR File Directly

Even if not recommended, the JAR File can always be used directly. The JAR file should be saved in an appropriate place for your application and the classpath of your application altered to include the MariaDB Java connector

Comments

Comments loading...