Missing Mysql.sock Not Found in tmp Print

  • 0

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

Was this answer helpful?

« Back