How do I close Database toolbox connections?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Jeffrey
am 1 Mai 2015
Beantwortet: Nobel Mondal
am 1 Mai 2015
I am using the Database Toolbox, and I have objects which when they are created have a connection property... I am looping through some code, and I keep getting 'Error using databae/fetch...' , 'Data source rejected establishment of connection, message from server: "Too many connections"'.. so I know mysql has a limit on the number of connections, but I can't figure out Matlabs interaction with it... I have not formally destroyed my objects, but rather at the end of each loop, I clear the object, and execute close commands... but it doesn't seem to help..there is nothing in my workspace, but clearly the connections are being maintained, at least at the server level. I would have thought it got closed when the objects were cleared. Any ideas on how to close these connections?
0 Kommentare
Akzeptierte Antwort
Nobel Mondal
am 1 Mai 2015
You should be able to close the connection using the command:
close(connectionObj)
Also, the documentation might be useful for your purpose:
doc database
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Database Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!