{"id":157,"date":"2013-09-09T01:35:00","date_gmt":"2013-09-09T01:35:00","guid":{"rendered":"http:\/\/225@jodohost.com\/\/blog\/"},"modified":"2013-09-09T01:35:00","modified_gmt":"2013-09-09T01:35:00","slug":"mysql-is-running-but-the-pid-file-cannot-be-found","status":"publish","type":"post","link":"http:\/\/www.jodohost.com\/blog\/index.php\/2013\/09\/09\/mysql-is-running-but-the-pid-file-cannot-be-found\/","title":{"rendered":"MySQL is running but the PID file cannot be found?"},"content":{"rendered":"<p>Sometimes when we try to stop the mysqld service on the server we get the error below :-<\/p>\n<p>MySQL is running but PID file could not be found [Failed]<\/p>\n<p>There are several reasons why one may get this error. No pid file may be present in the path &#8220;\/var\/run\/mysql\/&#8221; due to which this would happen. <\/p>\n<p>In that case, the steps below may fix the problem:- <\/p>\n<p>Make sure \/var\/run\/mysqld is present and if not then create that directory using mkdir\/var\/run\/myslqd<\/p>\n<p>Then create a pid file as below :- <\/p>\n<p>touch mysqld.pid<\/p>\n<p>and change its ownership to mysql:mysql as below :-<\/p>\n<p>chown mysql:mysql mysqld.pid<\/p>\n<p>and then restart the mysqld service and it shouldn&#8217;t give you any error this time.<\/p>\n<p> ]]><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8220;\/var\/run\/mysql\/&#8221; due to which this would happen. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/157"}],"collection":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=157"}],"version-history":[{"count":0,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/157\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=157"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=157"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.jodohost.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=157"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}