brettwooldridge / HikariCP

光 HikariCP・A solid, high-performance, JDBC connection pool at last.
Apache License 2.0
19.65k stars 2.9k forks source link

No way to use MariaDB connector and MySql server #2122

Closed gangxie112 closed 8 months ago

gangxie112 commented 9 months ago

The latest version of MariaDB connector has restricted the schema of mysql. Need add "permitMysqlScheme" for the acception of the url. See https://mariadb.com/kb/en/about-mariadb-connector-j/#source-code.

We are using HikariCP, and want to switch to MariaDB driver. It's that there is no way to to config HikariCP to add "permitMysqlScheme". Not sure if I miss something, is there any other way to make the 3 guys (HikariCP, MariadDB Connector and the mysql server) work together?

Thanks,

quaff commented 8 months ago

Since permitMysqlScheme is param of jdbc url, It's not related to connection pool.

lfbayer commented 8 months ago

You would only have that problem if you are setting a jdbcUrl, and if you are setting a jdbcUrl then you have the ability to add that parameter to the jdbcUrl. So the answer is to just add that property to your jdbcUrl.

I'm marking this as closed.