web analytics

Geeks Terminal

          Linux | Open Source | Web Hosting and more..

mysql logoWhile restarting MySQL service, you may get a error

“MySQL is running but PID file could not be found”

Let us see how to fix this error:

  • Login to the server as a root user with SSH
  • Create the directory var/run/mysql

#mkdir /var/run/mysql

  • Now create  file mysqld.pid

#touch mysqld.pid

and change its ownership to  mysql:mysql

#chown mysql:mysql mysqld.pid

  • Restart MySQL service and you will see no more error

If any feedback, queries are always welcome!

The author is a Linux System Administrator and likes to blog.

Facebook Twitter LinkedIn Google+ 


Find helpful? Spread it!
Categories: Linux, MySQL, Plesk

Comments are closed.