{"id":130,"date":"2010-03-06T04:23:03","date_gmt":"2010-03-05T19:23:03","guid":{"rendered":"http:\/\/blog.isnext.net\/issy\/?p=130"},"modified":"2010-03-06T16:18:53","modified_gmt":"2010-03-06T07:18:53","slug":"mysql%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e9%9a%9c%e5%ae%b3%e5%af%be%e5%bf%9c%e6%89%8b%e9%a0%86","status":"publish","type":"post","link":"https:\/\/blog.isnext.net\/issy\/archives\/130","title":{"rendered":"mysql\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u969c\u5bb3\u5bfe\u5fdc\u624b\u9806"},"content":{"rendered":"<p>\u554f\u984c\u306e\u3042\u308b\u30c6\u30fc\u30d6\u30eb\u3092\u7279\u5b9a<br \/>\n\/var\/log\/mysqld.log \u3092\u78ba\u8a8d<\/p>\n<p># mysqlcheck -u root -p -c -q -A<br \/>\n\u5ff5\u306e\u305f\u3081\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5168\u30c1\u30a7\u30c3\u30af\u3002<\/p>\n<p># cd \/var\/lib\/mysql\/dbname\/<br \/>\n# mysqld_multi stop 1 (1\u756a\u306emysql\u505c\u6b62\uff09<\/p>\n<p>\u901a\u5e38\u306emysql\u505c\u6b62\u30b3\u30de\u30f3\u30c9\u306f<br \/>\n# service mysqld stop<br \/>\n\u3053\u3053\u3067\u306f\u8907\u6570\u8d77\u52d5\u8a2d\u5b9a\u306e\u305f\u3081mysqld_multi\u3092\u4f7f\u7528<\/p>\n<p>CPU100%\u5f35\u308a\u4ed8\u304d\u7b49\u3067\u30d7\u30ed\u30bb\u30b9\u304c\u7d42\u4e86\u3057\u3066\u304f\u308c\u306a\u3044\u5834\u5408\u306b\u306f<br \/>\n# ps aux | grep mysql<br \/>\n\u30d7\u30ed\u30bb\u30b9\u756a\u53f7\u3092\u78ba\u8a8d\u3057\u3066\u5f37\u5236\u7d42\u4e86<br \/>\n# kill -9 \u30d7\u30ed\u30bb\u30b9\u756a\u53f7<\/p>\n<p># mv tablename.TMD tabelname.TMD.org<br \/>\n# myisamchk -v -q tablename.MYI<\/p>\n<p>-q\u304c\u30c0\u30e1\u306a\u3089-r\u3067\u3002<br \/>\n# myisamchk -v -r tablename.MYI<\/p>\n<p>\u4fee\u5fa9\u304c\u7d42\u308f\u3063\u305f\u3089\u78ba\u8a8d<\/p>\n<p># mysqld_multi start 1<br \/>\n# mysqlcheck -u root -p -c -q -A<\/p>\n<p>\u30c7\u30fc\u30bf\u306b\u554f\u984c\u304c\u306a\u3051\u308c\u3070\u3001\u5ff5\u306e\u305f\u3081\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306edump<br \/>\n# mysqlqump -u root -p -e dbname > dbname.sql<\/p>\n<p>\u4ee5\u4e0b\u306e\u3084\u308a\u65b9\u3082\u3042\u308b\u3051\u3069\u6642\u9593\u304b\u304b\u308b\u306e\u3067\u30aa\u30b9\u30b9\u30e1\u3057\u306a\u3044\u3002<br \/>\n# mysql -u root -p<br \/>\n> use databasename<br \/>\n> check table tablename quick;<br \/>\n> repair no_write_to_binlog table tablename quick;<\/p>\n<p>\u3060\u3081\u306a\u3089<\/p>\n<p>> repair no_write_to_binlog table tablename use_frm;<\/p>\n<p>\u9577\u6642\u9593\u304b\u304b\u308b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u554f\u984c\u306e\u3042\u308b\u30c6\u30fc\u30d6\u30eb\u3092\u7279\u5b9a \/var\/log\/mysqld.log \u3092\u78ba\u8a8d # mysqlcheck -u root -p -c -q -A \u5ff5\u306e\u305f\u3081\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u5168\u30c1\u30a7\u30c3\u30af\u3002 # cd \/var\/lib\/mysql\/dbn &hellip; <a href=\"https:\/\/blog.isnext.net\/issy\/archives\/130\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;mysql\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u969c\u5bb3\u5bfe\u5fdc\u624b\u9806&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[20,24],"class_list":["post-130","post","type-post","status-publish","format-standard","hentry","category-linux","tag-centos","tag-mysql"],"_links":{"self":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/comments?post=130"}],"version-history":[{"count":4,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/130\/revisions"}],"predecessor-version":[{"id":133,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/posts\/130\/revisions\/133"}],"wp:attachment":[{"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/media?parent=130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/categories?post=130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.isnext.net\/issy\/wp-json\/wp\/v2\/tags?post=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}