I have a .sql file (named dbdump.sql) in my current MATLAB directory, and I want to get some data out of it into MATLAB. I believe this should be a straightforward task, and here is what I have so far:
javaaddpath('C:/mysql-connector-java-5.0.8/mysql-connector-java-5.0.8-bin.jar')
con = database('dataarchivetest','', '','com.mysql.jdbc.Driver','./dbdump.sql');
query = exec(con,'select * from test');
However, when I inspect the con variable, it gives the following message:
'JDBC Driver Error: com.mysql.jdbc.Driver. Driver Not Found/Loaded.'
I also tried the following:
con = database('dataarchivetest','', '','C:/mysql-connector-java-5.0.8/mysql-connector-java-5.0.8-bin.jar','./dbdump.sql');
query = exec(con,'select * from test');
And got a similar message:
JDBC Driver Error: C:/mysql-connector-java-5.0.8/mysql-connector-java-5.0.8-bin.jar. Driver Not Found/Loaded.
I downloaded the MySQL connector from here: http://dev.mysql.com/downloads/mirror.php?id=13597http://dev.mysql.com/downloads/mirror.php?id=13597
I feel I am missing something very simple. Any help would be highly appreciated.