lugreen
(Ray Lv)
April 9, 2019, 4:59am
#1
Hi,
When using MySql , the console will print some warning message like below:
Loading class com.mysql.jdbc.Driver’. This is deprecated. The new driver class is com.mysql.cj.jdbc.Driver’. The driver is automatically registered via the SPI and manual loading of the driver class is generally unnecessary.
I have searched some information about that, found that ‘com.mysql.cj.jdbc.Driver’ is the driver of mysql 6.x,
Now my question is whether CUBA supports MySql 6.x ? If yes, how to do?
Thanks
tsarev
(Daniil Tsaryov)
April 9, 2019, 7:14am
#2
Hello @lugreen
CUBA supports MySQL 5.6+ . Have you encountered any problems?
Regards,
Daniil
lugreen
(Ray Lv)
April 9, 2019, 7:36am
#3
Hi, Daniil
Thanks for your reply timely.
In fact there’s no problem for me. Just a developer from Chinese forum asked this question. He want to use newer version mysql driver.
We are not sure about this , so i asked it here.
Regards
Ray.Lv
tsarev
(Daniil Tsaryov)
April 9, 2019, 8:59am
#4
com.mysql.cj.jdbc.Driver
is a replacement for deprecated com.mysql.jdbc.Driver
, so newer versions of MySQL should be correctly working.
You can find a usage of the first one in the official documentation of MySQL: link
Regards,
Daniil
lugreen
(Ray Lv)
April 9, 2019, 9:20am
#5
Hi,Daniil
At present ,CUBA used driver of mysdql is “com.mysql.jdbc.Driver” , so CUBA can’t support mysql 6.x+,
Am i right ?
Regards,
Ray.LV
tsarev
(Daniil Tsaryov)
April 9, 2019, 9:50am
#6
It seems that it should be clarified that MySQL public releases are:
And in fact there is no 6.* MySQL releases.
MySQL 8 is supported in Release 8 of CUBA Studio: YouTrack .
Regards,
Daniil
lugreen
(Ray Lv)
April 9, 2019, 10:12am
#7
Hi,Daniil
Thanks a lot.
Now it’s clear.
Regards
Ray.LV
4714407
(4714407)
April 12, 2019, 1:06pm
#8
Driver classes “com.mysql.jdbc.Driver” used by platform is deprecated!
tsarev
(Daniil Tsaryov)
April 14, 2019, 11:48am
#9
Hello @4714407
Platform doesn’t use any specific version because MySQL drivers are not redistributable.
Could you describe you case in more details?
Regards,
Daniil
4714407
(4714407)
April 16, 2019, 6:30am
#10
set driverClassName=“com.mysql.cj.jdbc.Driver” in context.xml
1 Like