Get Started with java connector
You are viewing an old version of this article. View
the current version here.
Installation
The recommended way to install MariaDB driver is using a package manager like maven or gradle.
Maven
Add the following dependency to your maven pom.xml file
<dependency> <groupId>org.mariadb.jdbc</groupId> <artifactId>mariadb-java-client</artifactId> <version>2.1.2</version> </dependency>
Gradle
Add the following dependency to your maven pom.xml file
implementation 'org.mariadb.jdbc:mariadb-java-client:2.1.2'
Using JAR file directly
Jar File can always be used directly, even if not recommended. After downloading driver, classpath must be configured to include JAR in the classpath.
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.