Register Hereor login if you are already a member
If there is no .sock file, or is there an error to start mysql, you can crate this file and can overcome this issue. First look for my.cnf file Or you can search the same. If not found, create my.cnf file. And add the below lines,
socket = /var/mysql/mysql.sock
Now save this file & restart mysql server.
Or run the command like,
% mysqladmin variables
For socket variables.