mybatis / guice

Google Guice integration for MyBatis 3
http://mybatis.github.io/guice
Apache License 2.0
175 stars 118 forks source link

`JdbcHelper.MariaDB` no longer compatible with MariaDB Connector/J #589

Closed mike-jumper closed 1 year ago

mike-jumper commented 1 year ago

JdbcHelper.MariaDB is currently associated with the jdbc:mysql: URL scheme:

https://github.com/mybatis/guice/blob/21d12f4d9458870287bee593d50ccc06d19b2ad5/src/main/java/org/mybatis/guice/datasource/helper/JdbcHelper.java#L83

Unfortunately, this scheme is no longer accepted by MariaDB Connector/J as of version 3.0 (at least not without additional URL options):

https://mariadb.com/kb/en/about-mariadb-connector-j/#jdbcmysql-scheme-compatibility

Attempting to use JdbcHelper.MariaDB with a 3.x version of MariaDB Connector/J results in a "No suitable driver found for jdbc:mysql" error.