{"id":61737,"date":"2024-10-13T13:16:16","date_gmt":"2024-10-13T05:16:16","guid":{"rendered":"https:\/\/server.hk\/cnblog\/61737\/"},"modified":"2024-10-13T13:16:16","modified_gmt":"2024-10-13T05:16:16","slug":"ifix%e6%95%b8%e6%93%9a%e5%ba%ab%e7%84%a1%e6%b3%95%e6%89%93%e9%96%8b%e7%9a%84%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95-ifix%e6%95%b8%e6%93%9a%e5%ba%ab%e6%89%93%e4%b8%8d%e9%96%8b","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/61737\/","title":{"rendered":"ifix\u6578\u64da\u5eab\u7121\u6cd5\u6253\u958b\u7684\u89e3\u6c7a\u65b9\u6cd5 (ifix\u6578\u64da\u5eab\u6253\u4e0d\u958b)"},"content":{"rendered":"<h1 id=\"ifix%e6%95%b8%e6%93%9a%e5%ba%ab%e7%84%a1%e6%b3%95%e6%89%93%e9%96%8b%e7%9a%84%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95-oMRZtKLBpR\">ifix\u6578\u64da\u5eab\u7121\u6cd5\u6253\u958b\u7684\u89e3\u6c7a\u65b9\u6cd5<\/h1>\n<p>\u5728\u65e5\u5e38\u7684\u6578\u64da\u7ba1\u7406\u4e2d\uff0c\u6578\u64da\u5eab\u7684\u7a69\u5b9a\u6027\u548c\u53ef\u7528\u6027\u81f3\u95dc\u91cd\u8981\u3002\u7136\u800c\uff0c\u4f7f\u7528ifix\u6578\u64da\u5eab\u7684\u7528\u6236\u6709\u6642\u6703\u9047\u5230\u7121\u6cd5\u6253\u958b\u6578\u64da\u5eab\u7684\u554f\u984c\u3002\u9019\u7a2e\u60c5\u6cc1\u53ef\u80fd\u7531\u591a\u7a2e\u539f\u56e0\u5f15\u8d77\uff0c\u5305\u62ec\u6587\u4ef6\u640d\u58de\u3001\u914d\u7f6e\u932f\u8aa4\u6216\u7cfb\u7d71\u554f\u984c\u3002\u672c\u6587\u5c07\u63a2\u8a0e\u4e00\u4e9b\u5e38\u898b\u7684\u89e3\u6c7a\u65b9\u6cd5\uff0c\u5e6b\u52a9\u7528\u6236\u6709\u6548\u5730\u89e3\u6c7a\u9019\u4e00\u554f\u984c\u3002<\/p>\n<h2 id=\"%e5%b8%b8%e8%a6%8b%e5%8e%9f%e5%9b%a0-oMRZtKLBpR\">\u5e38\u898b\u539f\u56e0<\/h2>\n<p>\u5728\u6df1\u5165\u89e3\u6c7a\u65b9\u6848\u4e4b\u524d\uff0c\u4e86\u89e3\u9020\u6210ifix\u6578\u64da\u5eab\u7121\u6cd5\u6253\u958b\u7684\u5e38\u898b\u539f\u56e0\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u53ef\u80fd\u7684\u539f\u56e0\uff1a<\/p>\n<ul>\n<li><strong>\u6587\u4ef6\u640d\u58de\uff1a<\/strong>\u6578\u64da\u5eab\u6587\u4ef6\u53ef\u80fd\u56e0\u610f\u5916\u95dc\u9589\u3001\u7cfb\u7d71\u5d29\u6f70\u6216\u786c\u4ef6\u6545\u969c\u800c\u640d\u58de\u3002<\/li>\n<li><strong>\u914d\u7f6e\u932f\u8aa4\uff1a<\/strong>\u6578\u64da\u5eab\u7684\u914d\u7f6e\u6587\u4ef6\u53ef\u80fd\u5b58\u5728\u932f\u8aa4\uff0c\u5c0e\u81f4\u7121\u6cd5\u6b63\u5e38\u555f\u52d5\u3002<\/li>\n<li><strong>\u6b0a\u9650\u554f\u984c\uff1a<\/strong>\u7528\u6236\u53ef\u80fd\u6c92\u6709\u8db3\u5920\u7684\u6b0a\u9650\u4f86\u8a2a\u554f\u6578\u64da\u5eab\u3002<\/li>\n<li><strong>\u7248\u672c\u4e0d\u517c\u5bb9\uff1a<\/strong>\u6578\u64da\u5eab\u7684\u7248\u672c\u53ef\u80fd\u8207\u61c9\u7528\u7a0b\u5e8f\u4e0d\u517c\u5bb9\u3002<\/li>\n<\/ul>\n<h2 id=\"%e8%a7%a3%e6%b1%ba%e6%96%b9%e6%b3%95-oMRZtKLBpR\">\u89e3\u6c7a\u65b9\u6cd5<\/h2>\n<h3 id=\"1-%e6%aa%a2%e6%9f%a5%e6%96%87%e4%bb%b6%e5%ae%8c%e6%95%b4%e6%80%a7-oMRZtKLBpR\">1. \u6aa2\u67e5\u6587\u4ef6\u5b8c\u6574\u6027<\/h3>\n<p>\u9996\u5148\uff0c\u6aa2\u67e5\u6578\u64da\u5eab\u6587\u4ef6\u7684\u5b8c\u6574\u6027\u3002\u5982\u679c\u6587\u4ef6\u640d\u58de\uff0c\u53ef\u4ee5\u8003\u616e\u4f7f\u7528\u6578\u64da\u6062\u5fa9\u5de5\u5177\u4f86\u4fee\u5fa9\u3002\u8a31\u591a\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\u63d0\u4f9b\u4e86\u5167\u5efa\u7684\u4fee\u5fa9\u5de5\u5177\u3002\u4f8b\u5982\uff0c\u5c0d\u65bc\u67d0\u4e9b\u6578\u64da\u5eab\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u9032\u884c\u4fee\u5fa9\uff1a<\/p>\n<pre><code>REPAIR TABLE table_name;<\/code><\/pre>\n<h3 id=\"2-%e6%aa%a2%e6%9f%a5%e9%85%8d%e7%bd%ae%e6%96%87%e4%bb%b6-oMRZtKLBpR\">2. \u6aa2\u67e5\u914d\u7f6e\u6587\u4ef6<\/h3>\n<p>\u78ba\u4fdd\u6578\u64da\u5eab\u7684\u914d\u7f6e\u6587\u4ef6\u6b63\u78ba\u7121\u8aa4\u3002\u6aa2\u67e5\u914d\u7f6e\u6587\u4ef6\u4e2d\u7684\u8def\u5f91\u3001\u7aef\u53e3\u865f\u548c\u5176\u4ed6\u8a2d\u7f6e\u662f\u5426\u6b63\u78ba\u3002\u5c0d\u65bcifix\u6578\u64da\u5eab\uff0c\u901a\u5e38\u914d\u7f6e\u6587\u4ef6\u4f4d\u65bc\u5b89\u88dd\u76ee\u9304\u4e0b\u7684config\u6587\u4ef6\u593e\u4e2d\u3002\u53ef\u4ee5\u4f7f\u7528\u6587\u672c\u7de8\u8f2f\u5668\u6253\u958b\u4e26\u6aa2\u67e5\u3002<\/p>\n<h3 id=\"3-%e6%aa%a2%e6%9f%a5%e7%94%a8%e6%88%b6%e6%ac%8a%e9%99%90-oMRZtKLBpR\">3. \u6aa2\u67e5\u7528\u6236\u6b0a\u9650<\/h3>\n<p>\u78ba\u4fdd\u7576\u524d\u7528\u6236\u64c1\u6709\u8a2a\u554f\u6578\u64da\u5eab\u7684\u6b0a\u9650\u3002\u53ef\u4ee5\u901a\u904e\u6578\u64da\u5eab\u7ba1\u7406\u5de5\u5177\u6aa2\u67e5\u7528\u6236\u6b0a\u9650\uff0c\u4e26\u6839\u64da\u9700\u8981\u9032\u884c\u8abf\u6574\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u4ee5\u4e0bSQL\u547d\u4ee4\u4f86\u6388\u4e88\u6b0a\u9650\uff1a<\/p>\n<pre><code>GRANT ALL PRIVILEGES ON database_name.* TO 'username'@'localhost';<\/code><\/pre>\n<h3 id=\"4-%e6%9b%b4%e6%96%b0%e6%95%b8%e6%93%9a%e5%ba%ab%e7%89%88%e6%9c%ac-oMRZtKLBpR\">4. \u66f4\u65b0\u6578\u64da\u5eab\u7248\u672c<\/h3>\n<p>\u5982\u679c\u6578\u64da\u5eab\u7248\u672c\u8207\u61c9\u7528\u7a0b\u5e8f\u4e0d\u517c\u5bb9\uff0c\u8003\u616e\u66f4\u65b0\u6578\u64da\u5eab\u6216\u61c9\u7528\u7a0b\u5e8f\u5230\u6700\u65b0\u7248\u672c\u3002\u9019\u6a23\u53ef\u4ee5\u89e3\u6c7a\u7531\u65bc\u7248\u672c\u4e0d\u5339\u914d\u800c\u5c0e\u81f4\u7684\u554f\u984c\u3002<\/p>\n<h3 id=\"5-%e6%9f%a5%e7%9c%8b%e6%97%a5%e8%aa%8c%e6%96%87%e4%bb%b6-oMRZtKLBpR\">5. \u67e5\u770b\u65e5\u8a8c\u6587\u4ef6<\/h3>\n<p>\u6aa2\u67e5\u6578\u64da\u5eab\u7684\u65e5\u8a8c\u6587\u4ef6\u53ef\u4ee5\u63d0\u4f9b\u6709\u95dc\u932f\u8aa4\u7684\u66f4\u591a\u4fe1\u606f\u3002\u65e5\u8a8c\u6587\u4ef6\u901a\u5e38\u4f4d\u65bc\u6578\u64da\u5eab\u7684\u5b89\u88dd\u76ee\u9304\u4e0b\uff0c\u901a\u904e\u67e5\u770b\u65e5\u8a8c\uff0c\u53ef\u4ee5\u627e\u5230\u5177\u9ad4\u7684\u932f\u8aa4\u4fe1\u606f\uff0c\u5f9e\u800c\u91dd\u5c0d\u6027\u5730\u9032\u884c\u4fee\u5fa9\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-oMRZtKLBpR\">\u7e3d\u7d50<\/h2>\n<p>ifix\u6578\u64da\u5eab\u7121\u6cd5\u6253\u958b\u7684\u554f\u984c\u53ef\u80fd\u7531\u591a\u7a2e\u56e0\u7d20\u5f15\u8d77\uff0c\u4f46\u901a\u904e\u6aa2\u67e5\u6587\u4ef6\u5b8c\u6574\u6027\u3001\u914d\u7f6e\u6587\u4ef6\u3001\u7528\u6236\u6b0a\u9650\u3001\u66f4\u65b0\u7248\u672c\u4ee5\u53ca\u67e5\u770b\u65e5\u8a8c\u6587\u4ef6\uff0c\u901a\u5e38\u53ef\u4ee5\u627e\u5230\u89e3\u6c7a\u65b9\u6848\u3002\u5982\u679c\u60a8\u5728\u5c0b\u627e\u7a69\u5b9a\u7684\u6578\u64da\u5eab\u89e3\u6c7a\u65b9\u6848\uff0c\u8003\u616e\u4f7f\u7528<a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a>\u4f86\u6258\u7ba1\u60a8\u7684\u6578\u64da\u5eab\uff0c\u9019\u6a23\u53ef\u4ee5\u78ba\u4fdd\u66f4\u9ad8\u7684\u53ef\u7528\u6027\u548c\u6027\u80fd\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63a2\u7d22ifix\u6578\u64da\u5eab\u7121\u6cd5\u6253\u958b\u7684\u89e3\u6c7a\u65b9\u6cd5\uff0c\u5feb\u901f\u4fee\u5fa9\u554f\u984c\uff0c\u6062\u5fa9\u6578\u64da\u8a2a\u554f\uff0c\u63d0\u5347\u5de5\u4f5c\u6548\u7387\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[101],"tags":[],"class_list":["post-61737","post","type-post","status-publish","format-standard","hentry","category-database"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/61737","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=61737"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/61737\/revisions"}],"predecessor-version":[{"id":61738,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/61737\/revisions\/61738"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=61737"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=61737"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=61737"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}