This question already has an answer here:
I kept getting this following error every time I tried to restart MySql. It was working fine before I changed the default data directory.
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib /mysql/mysql.sock' (111)
I know there are other solutions posted by others but none of them worked for me.