{"id":70,"date":"2014-07-06T07:46:04","date_gmt":"2014-07-05T22:46:04","guid":{"rendered":"http:\/\/yokensaka.com\/centos\/?p=70"},"modified":"2014-07-19T19:56:50","modified_gmt":"2014-07-19T10:56:50","slug":"mysql%e3%81%ae%e3%83%86%e3%83%bc%e3%83%96%e3%83%ab%e7%a0%b4%e6%90%8d","status":"publish","type":"post","link":"http:\/\/yokensaka.com\/centos\/?p=70","title":{"rendered":"mysql\u306e\u30c6\u30fc\u30d6\u30eb\u7834\u640d"},"content":{"rendered":"<p>Cron\u304b\u3089mysql\u306b\u95a2\u3059\u308b\u30a8\u30e9\u30fc\u30e1\u30fc\u30eb\u304c\u5c4a\u3044\u305f<br \/>\nmysqldump: Got error: 145: Table &#8216;.\/nucleus\/nucleus_plugin_counter&#8217; is marked as crashed and should be repaired when using LOCK TABLES<br \/>\n\u66f4\u65b0\u304c\u6b62\u307e\u3063\u3066\u308b\u72b6\u614b\u306e\u300c<a href=\"http:\/\/yokensaka.com\/blog\/\">\u3042\u306b\u3087\u306e\u30d6\u30ed\u30b0<\/a>\u300d\u306e\u30ab\u30a6\u30f3\u30bf\u30fc\u306e\u3068\u3053\u308d\u306b\u3082\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u30fb\u30fb\u30fb<br \/>\nmySQL error with query SELECT * FROM nucleus_plugin_counter ORDER BY count_time DESC LIMIT 1: Table &#8216;.\/nucleus\/nucleus_plugin_counter&#8217; is marked as crashed and should be repaired<br \/>\n\u3069\u3046\u3084\u3089\u30ab\u30a6\u30f3\u30bf\u30fc\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304c\u58ca\u308c\u305f\u3088\u3046\u3060<br \/>\n\u25a0 \u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30a8\u30e9\u30fc\u3092\u78ba\u8a8d<\/p>\n<pre>[root@server1 ~]# mysql -u root -p\u30d1\u30b9\u30ef\u30fc\u30c9\r\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\r\nYour MySQL connection id is 45165\r\nServer version: 5.1.73 Source distribution\r\nCopyright (c) 2000, 2013, Oracle and\/or its affiliates. All rights reserved.\r\nOracle is a registered trademark of Oracle Corporation and\/or its\r\naffiliates. Other names may be trademarks of their respective\r\nowners.\r\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\r\n\u25a0 \u554f\u984c\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u63a5\u7d9a\r\nmysql&gt; use nucleus;\r\nReading table information for completion of table and column names\r\nYou can turn off this feature to get a quicker startup with -A\r\nDatabase changed\r\n\u25a0 \u30a8\u30e9\u30fc\u30c1\u30a7\u30c3\u30af\r\nmysql&gt; check table nucleus_plugin_counter;\r\n+--------------------------------+-------+----------+----------------------------------------------------------+\r\n| Table                          | Op    | Msg_type | Msg_text                                                 |\r\n+--------------------------------+-------+----------+----------------------------------------------------------+\r\n| nucleus.nucleus_plugin_counter | check | warning  | Table is marked as crashed                               |\r\n| nucleus.nucleus_plugin_counter | check | warning  | 2 clients are using or haven't closed the table properly |\r\n| nucleus.nucleus_plugin_counter | check | error    | Found 13708 keys of 13709                                |\r\n| nucleus.nucleus_plugin_counter | check | error    | Corrupt                                                  |\r\n+--------------------------------+-------+----------+----------------------------------------------------------+\r\n4 rows in set (0.01 sec)\r\n\u25a0 \u58ca\u308c\u3066\u3044\u308b\u30c6\u30fc\u30d6\u30eb\u3092\u4fee\u5fa9\r\nmysql&gt; repair table nucleus_plugin_counter;\r\n+--------------------------------+--------+----------+--------------------------------------------+\r\n| Table                          | Op     | Msg_type | Msg_text                                   |\r\n+--------------------------------+--------+----------+--------------------------------------------+\r\n| nucleus.nucleus_plugin_counter | repair | warning  | Number of rows changed from 13709 to 13707 |\r\n| nucleus.nucleus_plugin_counter | repair | status   | OK                                         |\r\n+--------------------------------+--------+----------+--------------------------------------------+\r\n2 rows in set (0.12 sec)\r\n\u25a0 \u4fee\u5fa9\u3067\u304d\u305f\u304b\u78ba\u8a8d\r\nmysql&gt; check table nucleus_plugin_counter;\r\n+--------------------------------+-------+----------+----------+\r\n| Table                          | Op    | Msg_type | Msg_text |\r\n+--------------------------------+-------+----------+----------+\r\n| nucleus.nucleus_plugin_counter | check | status   | OK       |\r\n+--------------------------------+-------+----------+----------+\r\n1 row in set (0.01 sec)\r\nmysql&gt;exit<\/pre>\n<p>\u554f\u984c\u306a\u304f\u4fee\u5fa9\u3067\u304d\u305f\u3088\u3046\u3060\u3002<br \/>\n\u30d6\u30ed\u30b0\u306e\u30ab\u30a6\u30f3\u30bf\u30fc\u8868\u793a\u3082\u5143\u306b\u623b\u3063\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Cron\u304b\u3089mysql\u306b\u95a2\u3059\u308b\u30a8\u30e9\u30fc\u30e1\u30fc\u30eb\u304c\u5c4a\u3044\u305f mysqldump: Got &hellip; <a href=\"http:\/\/yokensaka.com\/centos\/?p=70\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-70","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/posts\/70","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=70"}],"version-history":[{"count":1,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions"}],"predecessor-version":[{"id":205,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=\/wp\/v2\/posts\/70\/revisions\/205"}],"wp:attachment":[{"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=70"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=70"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yokensaka.com\/centos\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=70"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}