Release Notes for MariaDB Connector/J 3.0.6


MariaDB Connector/J is a lightweight JDBC driver (Type 4) for building applications on top of MariaDB database products with Java 8, Java 11, and Java 17.

This release is compatible with JDBC 4.2.

MariaDB Connector/J 3.0.6 was released on 2022-06-29. This release is of General Availability (GA) maturity.

Notable Changes

  • The initSql connection parameter has been added. (CONJ-984)

    • The new parameter enables execution of a SQL statement upon connection creation.

    • For example, to execute SET NAMES UTF8 upon connection creation, the following connection string could be used:

    jdbc:mariadb://DB_HOST:DB_PORT/DB?user=DB_USER&password=DB_PASSWD&initSql=SET NAMES UTF8
  • The pipelining and bulk optimizations can now be used when allowLocalInfile is enabled as long as the statements do not include LOAD LOCAL INFILE commands. Excluding statements that include LOAD LOCAL INFILE commands is done automatically to prevent performance regression. (CONJ-976)

Issues Fixed


MariaDB Connector/J 3.0 has been superseded by MariaDB Connector/J 3.3, which is fully compatible with MariaDB Connector/J 3.0. For upgrade instructions: