Connection failed: Communications link failure
Last packet sent to the server was 0 ms ago.
??? No constructor 'com.mathworks.toolbox.database.closeTheDatabaseConnection' with matching
signature found.
After I lost 2 hrs of my time, I remembered I had gone through the same error in Hibernate/mysql.
The solution is so simple:
Just comment out the following line in my.cnf(the mysql configuration file). :)
skip-networking
so that it looks like this:
#skip-networking
Finally restart the service mysql.
To know why see my earlier post:http://howtoxyz.blogspot.com/2008/09/solve-commysqljdbccommunicationsexcepti.html