{"id":6951,"date":"2020-04-29T08:10:44","date_gmt":"2020-04-29T00:10:44","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=6951"},"modified":"2020-04-29T08:10:45","modified_gmt":"2020-04-29T00:10:45","slug":"myisamchk","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/myisamchk","title":{"rendered":"myisamchk\u547d\u4ee4 – \u68c0\u67e5\u548c\u4fee\u590dMyISAM\u8868"},"content":{"rendered":"\n

\u4f7f\u7528myisamchk\u547d\u4ee4\u53ef\u4ee5\u68c0\u67e5\u548c\u4fee\u590dMyISAM\u8868\u3002\u4f7f\u7528\u4e0d\u5e26\u9009\u9879\u7684\u547d\u4ee4\uff0c\u6240\u6709\u8868\u5c06\u88ab\u68c0\u67e5\u662f\u5426\u6709\u9519\u8bef\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>myisamchk [\u53c2\u6570] [\u8868]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n

-p<\/td>\u4e0e-r\u548c-n\u7684\u7528\u6cd5\u76f8\u540c\uff0c\u4f46\u4f7f\u7528\u4e0d\u540c\u7684\u7ebf\u7a0b\u5e76\u884c\u521b\u5efa\u6240\u6709\u952e<\/td><\/tr>
-c<\/td>\u68c0\u67e5\u8868\u7684\u9519\u8bef<\/td><\/tr>
-w<\/td>\u5982\u679c\u8868\u88ab\u9501\u4f4f\u5c31\u7b49\u5f85<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u68c0\u67e5\u548c\u4fee\u590dMyISAM\u8868\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# myisamchk \/var\/lib\/mysql\/mysql\/db.MYI<\/pre>\n\n\n\n

\u68c0\u67e5\u548c\u6062\u590dt1\u8868\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# myisamchk -iBfqr \/var\/lib\/mysql\/backup\/t1<\/pre>\n\n\n\n

\u4e3amyisamchk\u8bbe\u7f6e\u66f4\u591a\u7684\u5185\u5b58\uff0c\u6765\u4f7f\u5176\u8fd0\u884c\u7684\u66f4\u5feb\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# myisamchk --sort_buffer_size=16M --key_buffer_size=16M --read_buffer_size=1M --write_buffer_size=1M<\/pre>\n","protected":false},"excerpt":{"rendered":"

\u4f7f\u7528myisamchk\u547d\u4ee4\u53ef\u4ee5\u68c0\u67e5\u548c\u4fee\u590dMyISAM\u8868\u3002\u4f7f\u7528\u4e0d\u5e26\u9009\u9879\u7684\u547d\u4ee4\uff0c\u6240\u6709\u8868\u5c06\u88ab\u68c0\u67e5\u662f\u5426\u6709\u9519\u8bef\u3002 \u8bed\u6cd5\u683c […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6951"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=6951"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6951\/revisions"}],"predecessor-version":[{"id":7173,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/6951\/revisions\/7173"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=6951"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=6951"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=6951"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}