How to solve "MySQL is running but PID file could not be found"

If you encounter the error

"MySQL is running but PID file could not be found"

you have to create the directory

var/run/mysql

#mkdir /var/run/mysql

then create the file mysqld.pid

#touch mysqld.pid

and change its owner

#chown mysql:mysql mysqld.pid

this should solve the problem.

 

  • 45 Users Found This Useful
Was this answer helpful?

Related Articles

MySQL DUMP [ Import - Export ]

MySQL Tutorial - Import or Export A Database This tutorial section deals with mysqldump which is...

How to fix 'eximstats' for Cpanel.

  Problem: My 'eximstats' appears to be down and fails to start on boot. I have tried to...