Login to Members Area

Choose the service you want to log in
     
24x7x365 Presence
1-888-289-2246
Live Chat

Hosting Blog

 

MySQL is running but the PID file cannot be found?

Sometimes when we try to stop the mysqld service on the server we get the error below :-

MySQL is running but PID file could not be found [Failed]

There are several reasons why one may get this error. No pid file may be present in the path "/var/run/mysql/" due to which this would happen.

In that case, the steps below may fix the problem:-

Make sure /var/run/mysqld is present and if not then create that directory using mkdir/var/run/myslqd

Then create a pid file as below :-

touch mysqld.pid

and change its ownership to mysql:mysql as below :-

chown mysql:mysql mysqld.pid

and then restart the mysqld service and it shouldn't give you any error this time.

Sachin Monday 09 September 2013 - 01:35 am | | Default
Used tags: , , , , ,

No comments

(optional field)
(optional field)

Comment moderation is enabled on this site. This means that your comment will not be visible until it has been approved by an editor.

Remember personal info?
Small print: All html tags except <b> and <i> will be removed from your comment. You can make links by just typing the url or mail-address.