MySQL datasource

177 views
Skip to first unread message

PJ

unread,
Jul 3, 2018, 4:07:14 AM7/3/18
to HikariCP
Hello,

There is remark in HikariCP README.md:

"The MySQL DataSource is known to be broken with respect to network timeout support. Use jdbcUrl configuration instead."

As I understand it refers to com.mysql.jdbc.jdbc2.optional.MysqlDataSource, but there is new mysql Connector/J version 8 with new datasource:
com.mysql.cj.jdbc.MysqlDataSource. Does anyone know if it's still "broken with respect to network timeout support"?
I need to set connectTimeout and socketTimeout properties.

Any help would be appreciate.

Regards
Piotr


Brett Wooldridge

unread,
Jul 6, 2018, 4:46:37 PM7/6/18
to HikariCP
If in doubt, use JDBC-URL based configuration, instead of DataSource configurations.

-Brett
Reply all
Reply to author
Forward
0 new messages