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

1 次查看(过去 30 天)
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

回答(2 个)

Roja
Roja 2014-6-25
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 2018-6-12
Try restarting

类别

Help CenterFile Exchange 中查找有关 Database Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by