MATLAB: MySQL jdbc server not working with Matlab 2019

Database ToolboxMATLABMySQL

Hi
I changed from Matlab 2018 to 2019 and suddenly I have problems with the MySQL JDBC-Driver. Although it is installed, Matlab can't find it, and I get the following error message:
JDBC Driver Error: No suitable driver found for jdbc:mysql:
Any idea why this might be the case?
Cheers
Renger

Best Answer

You need to copy javaclasspath.txt from prefdir of R2018a (orR2018b) to prefdir of R2019a. In javaclasspath.txt, I suppose you had described the location of MySQL JDBC driver path.
Instead of using javaclasspath.txt, we can use configureJDBCDataSource from R2019a and it's easier to preset MySQL JDBC driver path. Here is a link of documenation.