Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: "MySQL is running but PID file could not be found" error  (Read 3239 times)

0 Members and 1 Guest are viewing this topic.

nirmal

  • Jr. Member
  • **
  • Posts: 56
  • Karma: +0/-0
"MySQL is running but PID file could not be found" error
« on: December 29, 2013, 01:40:09 pm »
Hello,

While 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

Thank you for checking this post
Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!