How to re-create /tmp/mysql.sock?
Solution 1:
Restart mysqld.
/etc/init.d/mysql restart
or
/sbin/service mysql restart
Solution 2:
Just restart your MySQL daemon.
Restart mysqld.
/etc/init.d/mysql restart
or
/sbin/service mysql restart
Just restart your MySQL daemon.