Questions? Feedback? powered by Olark live chat software
Author Avatar

Missing Mysql.sock Not Found in tmp

Written by: on 04 April 2014 03:45 PM 04 April 2014 03:45 PM

Learn what to do if MySql.sock file is missing. A self learning guidelines for any learners.

Some programs require mysql.sock to be located at /tmp/mysql.sock

However, cPanel setups and some others now put the mysql.sock file into /var/lib/mysql

Therefore, you can create a symlink so that /tmp/mysql.sock points to /var/lib/mysql.sock

To do this, login to your VPS via SSH


ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock

(2 vote(s))
Not helpful