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

Missing Mysql.sock Not Found in tmp

Written by: on 27 May 2016 05:57 PM 27 May 2016 05:57 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

Type:

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

(2 vote(s))
Helpful
Not helpful