{"id":300,"date":"2013-07-12T16:32:10","date_gmt":"2013-07-12T16:32:10","guid":{"rendered":"http:\/\/blog.shineservers.com\/?p=300"},"modified":"2013-07-12T16:32:10","modified_gmt":"2013-07-12T16:32:10","slug":"mysql-restart-failed-the-server-quit-without-updating-pid-file","status":"publish","type":"post","link":"https:\/\/www.shineservers.com\/2013\/07\/12\/mysql-restart-failed-the-server-quit-without-updating-pid-file\/","title":{"rendered":"MySQL Restart Failed : The Server Quit Without Updating PID File"},"content":{"rendered":"<h3><strong>You may face this error while restarting MySQL. Below are some fix for the same.<\/strong><\/h3>\n<blockquote>\n<pre>[root@server:\uff5e ] $ service mysqld start\nStarting MySQL... ERROR! The server quit without updating PID file<\/pre>\n<\/blockquote>\n<p><strong>This error can be de to different reasons.<\/strong><\/p>\n<p>1. Check if there is any running MySQL process by using the following commands and kill all and restart.<\/p>\n<blockquote>\n<pre>ps aux | grep mysql<\/pre>\n<\/blockquote>\n<p>If you are able to see any mysql process like below, just kill that process.<\/p>\n<blockquote>\n<pre>root@server [~]# ps aux | grep mysql\nroot\u00a0\u00a0\u00a0\u00a0\u00a0 1140\u00a0 0.0\u00a0 0.0\u00a0\u00a0 4140\u00a0\u00a0 676 pts\/0\u00a0\u00a0\u00a0 D+\u00a0\u00a0 22:34\u00a0\u00a0 0:00 grep mysql\nroot\u00a0\u00a0\u00a0\u00a0\u00a0 2987\u00a0 0.0\u00a0 0.0\u00a0\u00a0 4736\u00a0 1288 ?\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 S\u00a0\u00a0\u00a0 Sep27\u00a0\u00a0 0:00 \/bin\/sh \/usr\/bin\/mysqld_safe<\/pre>\n<\/blockquote>\n<p>Now kill it.<\/p>\n<blockquote>\n<pre>kill -9 2987<\/pre>\n<\/blockquote>\n<p>Make sure that there is no mysql process running at this point. Restart MySQL.<\/p>\n<blockquote>\n<pre>service mysqld restart<\/pre>\n<\/blockquote>\n<p>2. If the above fix is not working, now we can try some more. It can be due to some conflicting entries in my.cnf<\/p>\n<p>Try moving the mysql config file \/etc\/my.cnf file and restart mysql.<\/p>\n<blockquote>\n<pre>mv \/etc\/my.cnf \/etc\/my.cnf.backup<\/pre>\n<\/blockquote>\n<p>Restart mysql.<\/p>\n<blockquote>\n<pre>service mysqld restart<\/pre>\n<\/blockquote>\n<p>3. If none of the above is working, try to move the log file named \u201cib_logfile\u201d in \u201c\/var\/lib\/mysql\u201d and restart mysql. Sometimes mysql will fail because it face difficulty updating the log file.<\/p>\n<blockquote>\n<pre>mv \/var\/lib\/mysql\/ib_logfile* \/root\/<\/pre>\n<\/blockquote>\n<p>Restart and see the results.<\/p>\n<blockquote>\n<pre>service mysqld restart<\/pre>\n<\/blockquote>\n<p>You can also remove ib_logfile as it will be created automatically after mysql restart.<\/p>\n<p>Hope this helps.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may face this error while restarting MySQL. Below are some fix for the same. [root@server:\uff5e ] $ service mysqld start Starting MySQL&#8230; ERROR! The server quit without updating PID file This error can be de to different reasons. 1. Check if there is any running MySQL process by using the following commands and kill [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[53,60],"tags":[133],"class_list":["post-300","post","type-post","status-publish","format-standard","hentry","category-general","category-linux","tag-mysql-restart-failed-the-server-quit-without-updating-pid-file"],"acf":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts\/300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/comments?post=300"}],"version-history":[{"count":0,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/posts\/300\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/media?parent=300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/categories?post=300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shineservers.com\/wp-json\/wp\/v2\/tags?post=300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}