database Function error:One or more output arguments not assigned during call to "getValidConnection".

4 views (last 30 days)
During a call to database(...) I am getting the following error
One or more output arguments not assigned during call to "getValidConnection".
The "getValidConnection" function is called as part of the database function not a user defined function.
What is interesting is that I had this working for months. Haven't changed the code pertaining to this step at all. I've tried connecting to the database through the windows cmd and it connects fine. I've also tried connecting to a different database but to no avail.
Anybody have any insight or fought this error themselves?
Matlab version: 2012b database: MySQL Operating system: Windows 7

Answers (2)

Roja
Roja on 25 Jun 2014
Verify if it is JDBC or ODBC connection.Check if the path of the respective .jar driver is present in "matlab\toolbox\classpath.txt".If it is not present add the whole path of the .jar driver manually into "matlab\toolbox\classpath.txt" and restart MATLAB.

Rufina Savio
Rufina Savio on 12 Jun 2018
Try restarting

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!