{"id":2294,"date":"2015-10-11T12:39:16","date_gmt":"2015-10-11T19:39:16","guid":{"rendered":"http:\/\/www.wellgolly.com\/?p=2294"},"modified":"2015-10-11T12:39:16","modified_gmt":"2015-10-11T19:39:16","slug":"mysql-wont-reboot","status":"publish","type":"post","link":"https:\/\/www.wellgolly.com\/?p=2294","title":{"rendered":"MySQL won\u2019t reboot"},"content":{"rendered":"<p>After the 100% full hard disk problem I couldn\u2019t get MySQL to restart. I looked at the error logs and found these lines.<br \/>\n<pre><code class=\"preserve-code-formatting\">\n151010 16:51:18 [ERROR] \/usr\/sbin\/mysqld: Table &#039;.\/SS_connellsville\/alerts&#039; is marked as crashed and should be repaired\n151010 16:51:18 [Warning] Checking table:&nbsp;&nbsp; &#039;.\/SS_connellsville\/alerts&#039;\n151010 16:51:56 [ERROR] \/usr\/sbin\/mysqld: Table &#039;.\/SS_greensburg\/values_RSSI_3&#039; is marked as crashed and should be repaired\n151010 16:51:56 [Warning] Checking table:&nbsp;&nbsp; &#039;.\/SS_greensburg\/values_RSSI_3&#039;\n151010 16:51:58 [ERROR] \/usr\/sbin\/mysqld: Table &#039;.\/master\/node_groups&#039; is marked as crashed and should be repaired\n151010 16:51:58 [Warning] Checking table:&nbsp;&nbsp; &#039;.\/master\/node_groups&#039;\n<\/code><\/pre><\/p>\n<p>A stackoverflow post recommended using mysqlcheck. It must be used when the mysqld server is running. I couldn\u2019t see how to set it to just repair the databases that were causing problems, but I figured that it wouldn\u2019t hurt to run it on all of them. I was a bit concerned that it would run into problems when the cron jobs ran, but I set it running anyway. It changed the record count on all of the databases and ran for many hours. At least six, but I stopped monitoring and let it run overnight. I stopped MySQL and did a restart and it started without errors.<\/p>\n<p><pre><code class=\"preserve-code-formatting\">\nmysqlcheck --repair --use-frm --all-databases\n<\/code><\/pre><\/p>\n","protected":false},"excerpt":{"rendered":"<p>After the 100% full hard disk problem I couldn\u2019t get MySQL to restart. I looked at the error logs and found these lines. 151010 16:51:18 [ERROR] \/usr\/sbin\/mysqld: Table &#039;.\/SS_connellsville\/alerts&#039; is marked as crashed and should be repaired 151010 16:51:18 [Warning] Checking table:&nbsp;&nbsp; &#039;.\/SS_connellsville\/alerts&#039; 151010 16:51:56 [ERROR] \/usr\/sbin\/mysqld: Table &#039;.\/SS_greensburg\/values_RSSI_3&#039; is marked as crashed and should &hellip; <a href=\"https:\/\/www.wellgolly.com\/?p=2294\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">MySQL won\u2019t reboot<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-2294","post","type-post","status-publish","format-standard","hentry","category-coding"],"_links":{"self":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/2294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2294"}],"version-history":[{"count":0,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=\/wp\/v2\/posts\/2294\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wellgolly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}