not able to connect mysql server

view story

http://serverfault.com – I have mistakenly deleted some of the dependent file for mysql when I am trying to use mysql command i am getting following error : ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) I have tried reinstalling mysql-server but it still not resolved . What should I do to bring back everything to normal condition. (HowTos)