/mariadb-connector-j

MariaDB Connector/J is used to connect applications developed in Java to MariaDB and MySQL databases. MariaDB Connector/J is LGPL licensed.

Primary LanguageJavaGNU Lesser General Public License v2.1LGPL-2.1

MariaDB java connector

MariaDB java connector is a JDBC 4.2 compatible driver, used to connect applications developed in Java to MariaDB and MySQL databases. MariaDB Connector/J is LGPL licensed.

Tracker link https://jira.mariadb.org/projects/CONJ/issues/

Status

Linux Build Maven Central License (LGPL version 2.1) Codacy Badge codecov

Obtaining the driver

For java 8 or more : (maintenance branch for java 7 is 1.x)

The driver (jar) can be downloaded from mariadb connector download or maven :

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

New version 3.0 is a complete rewrite with code simplification, reduced size (15%), more than 90% coverage tested, with performance gain. But still in alpha for now:

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

Documentation

For a Getting started guide, API docs, recipes, etc. see the