Nov 15, 2008

solve "Communications link failure" in matlab

Recently while i was working on my project in matlab. I got the following error.
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

2 comments:

mysara said...

hi..may i know, where the my.cnf file located? i cannot found my.cnf file in my mysql.thanks

Suraj Sapkota said...

Normally you will find it in /etc directory.
But this totally depends upon how you installed Mysql.