{"id":685,"date":"2020-07-29T16:02:30","date_gmt":"2020-07-29T08:02:30","guid":{"rendered":"http:\/\/www.gbase8.cn\/?p=685"},"modified":"2021-01-08T16:10:31","modified_gmt":"2021-01-08T08:10:31","slug":"gbase-8a%e6%95%b0%e6%8d%ae%e5%ba%93%e9%9b%86%e7%be%a4%e6%9f%a5%e8%af%a2%e6%8a%a5%e9%94%99table-xxxx-is-marked-as-crashed-and-should-be-repaired","status":"publish","type":"post","link":"https:\/\/www.gbase8.cn\/en\/685","title":{"rendered":"\u5357\u5927\u901a\u7528GBase 8a\u6570\u636e\u5e93\u96c6\u7fa4\u67e5\u8be2\u62a5\u9519Table 'XXXX' is marked as crashed and should be repaired"},"content":{"rendered":"<p>GBase 8a\u6570\u636e\u5e93\u96c6\u7fa4\uff0c\u5176\u5143\u6570\u636e\u5927\u90e8\u5206\u662f\u4fdd\u5b58\u5728GsSYS\u5f15\u64ce\u4e0a\u7684\uff0c\u5982\u679c\u8868\u6570\u636e\u51fa\u73b0\u635f\u574f\uff0c\u5c31\u4f1a\u62a5Table 'XXXX' is marked as crashed and should be repaired\u3002\u672c\u6587\u4ecb\u7ecd\u5176\u4fee\u590d\u65b9\u6cd5\u3002<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Directory Navigation<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2b0bb69a3a3\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewbox=\"0 0 24 24\" version=\"1.2\" baseprofile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2b0bb69a3a3\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.gbase8.cn\/en\/685\/#1%E3%80%81%E5%8E%9F%E5%9B%A0\" >1\u3001\u539f\u56e0<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.gbase8.cn\/en\/685\/#2%E3%80%81%E5%B8%B8%E8%A7%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88\" >2\u3001\u5e38\u89c4\u89e3\u51b3\u65b9\u6848<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.gbase8.cn\/en\/685\/#3%E3%80%81%E4%BF%AE%E5%A4%8D%E8%A1%A8%E7%BB%93%E6%9E%84\" >3\u3001\u4fee\u590d\u8868\u7ed3\u6784<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1%E3%80%81%E5%8E%9F%E5%9B%A0\"><\/span>1\u3001\u539f\u56e0<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u8be5\u8868\u635f\u574f\uff0c\u9700\u8981\u4fee\u590d\u3002 \u76ee\u524d\u7248\u672c\u90fd\u662f\u6570\u636e\u5e93\u5143\u6570\u636e\u8868\u5bfc\u81f4\uff0c\u6bd4\u5982audit_log. table_distribution\u7b49\u3002 \u53ef\u4ee5\u4eceshow create table XXXX \u91cc\u770b\u5230engine\u7684\u7c7b\u578b\u3002<\/p>\n\n\n\n<p>\u5e38\u89c1\u539f\u56e0\u9664\u4e86\u78c1\u76d8\u6545\u969c\uff0c\u5c31\u662fgssys\u5f15\u64ce\u81ea\u8eab\u5728\u5904\u7406\u5927\u6570\u636e\u65f6(\u6bd4\u5982\u767e\u4e07\uff0c\u5343\u4e07\u884c)\u81ea\u8eab\u6ca1\u6709\u5185\u90e8\u591a\u7248\u672c\u673a\u5236\u5bfc\u81f4\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2%E3%80%81%E5%B8%B8%E8%A7%84%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88\"><\/span>2\u3001\u5e38\u89c4\u89e3\u51b3\u65b9\u6848<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\u4fee\u590d\u8868 <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>repair table XXXX;<\/code><\/pre>\n\n\n\n<p>\u5982\u6267\u884c\u7ed3\u679c\u5305\u542b repair\u00a0\u00a0 status OK \u5b57\u6837\u5c31\u662f\u4fee\u590d\u6210\u529f\u4e86\u3002\u00a0<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3%E3%80%81%E4%BF%AE%E5%A4%8D%E8%A1%A8%E7%BB%93%E6%9E%84\"><\/span>3\u3001\u4fee\u590d\u8868\u7ed3\u6784<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>\u5982\u679c\u4fee\u590d\u5931\u8d25\uff0c\u6bd4\u5982Incorrect file format 'audit_log'<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase> repair table audit_log;\r\n+-----------------+--------+----------+-----------------------------------+\r\n| Table           | Op     | Msg_type | Msg_text                          |\r\n+-----------------+--------+----------+-----------------------------------+\r\n| gbase.audit_log | repair | Error    | Incorrect file format 'audit_log' |\r\n| gbase.audit_log | repair | error    | Corrupt                           |\r\n+-----------------+--------+----------+-----------------------------------+\r\n2 rows in set (Elapsed: 00:00:00.00)\r\n<\/code><\/pre>\n\n\n\n<p>\u53ef\u4ee5\u7528repair table audit_log use_frm \u5f3a\u884c\u4fee\u590d\u8868\u7ed3\u6784\uff0c\u5f53\u7136\u6570\u636e\u5c31\u90fd\u4e22\u5931\u4e86\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>gbase> repair table audit_log use_frm;\r\n+-----------------+--------+----------+-----------------------------------+\r\n| Table           | Op     | Msg_type | Msg_text                          |\r\n+-----------------+--------+----------+-----------------------------------+\r\n| gbase.audit_log | repair | Error    | Incorrect file format 'audit_log' |\r\n| gbase.audit_log | repair | status   | OK                                |\r\n+-----------------+--------+----------+-----------------------------------+\r\n2 rows in set (Elapsed: 00:00:00.00)\r\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-large is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"147\" src=\"http:\/\/www.gbase8.cn\/wp-content\/uploads\/2020\/07\/image-48.png\" alt=\"\" class=\"wp-image-686\"\/><\/figure>","protected":false},"excerpt":{"rendered":"<p>\u5357\u5927\u901a\u7528GBase 8a\u6570\u636e\u5e93\u96c6\u7fa4\uff0c\u5176\u5143\u6570\u636e\u5927\u90e8\u5206\u662f\u4fdd\u5b58\u5728GsSYS\u5f15\u64ce\u4e0a\u7684\uff0c\u5982\u679c\u8868\u6570\u636e\u51fa\u73b0\u635f\u574f\uff0c\u5c31\u4f1a\u62a5Table 'XXXX' is marked as crashed and should be repaired\u3002\u672c\u6587\u4ecb\u7ecd\u5176\u4fee\u590d\u65b9\u6cd5\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[54],"tags":[],"class_list":["post-685","post","type-post","status-publish","format-standard","hentry","category-gbase8a"],"_links":{"self":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/comments?post=685"}],"version-history":[{"count":4,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/685\/revisions"}],"predecessor-version":[{"id":3230,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/posts\/685\/revisions\/3230"}],"wp:attachment":[{"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/media?parent=685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/categories?post=685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gbase8.cn\/en\/wp-json\/wp\/v2\/tags?post=685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}