I know this question was asked a lot before but I tried some of the solutions which were given and nothing worked..
I have downloaded MySQL Workbench 6.1 on
Avoid using bind_address in your my.cnf file, if you have any.
bind_address
Ref: http://dev.mysql.com/doc/refman/5.5/en/can-not-connect-to-server.html