I tried to install mysql using home-brew. Everything was successful But could not connect to the server. Obviously server have not started.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Following command rescued me..
I found it in this stack overflow answer.