tomekw / hikari-cp

A Clojure wrapper to HikariCP JDBC connection pool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support for MySQL Connector/J 8+

tampix opened this issue · comments

Hello, and thanks for the library.

Currently, "mysql" :adapter datasource classname is "com.mysql.jdbc.jdbc2.optional.MysqlDataSource".

From Connector/J 8+ onwards, the datasource changed to com.mysql.cj.jdbc.MysqlDataSource (see https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-api-changes.html)

As such, when using MySQL 8+, you have to either :

  • use :jdbc-url
  • use both :adapter and :datasource-class-name

It would be nice to have an adapter for mysql8 to handle that Connector/J change.

Hello @tampix let me know if the PR works for you :)

@tampix see 2.13.0 on Clojars.

Ah sorry, i didn't expect that fast of a reaction. Thanks a lot!