{"id":5246,"date":"2024-11-14T12:05:52","date_gmt":"2024-11-14T04:05:52","guid":{"rendered":"https:\/\/fwq.ai\/blog\/5246\/"},"modified":"2024-11-14T12:05:52","modified_gmt":"2024-11-14T04:05:52","slug":"mysql%e8%af%af%e5%88%a0%e9%99%a4%e6%95%b0%e6%8d%ae%e5%ba%93%e6%80%8e%e4%b9%88%e6%81%a2%e5%a4%8d","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/5246\/","title":{"rendered":"mysql\u8bef\u5220\u9664\u6570\u636e\u5e93\u600e\u4e48\u6062\u590d"},"content":{"rendered":"<blockquote><p>\n  \u82e5\u6570\u636e\u5e93\u6587\u4ef6\u672a\u88ab\u8986\u76d6\uff0c\u590d\u5236 ibdata1 \u548c ib_logfile* \u6587\u4ef6\uff0c\u521b\u5efa\u65b0\u6570\u636e\u5e93\u5e76\u6062\u590d\u6570\u636e\u3002\u82e5\u6570\u636e\u5e93\u6587\u4ef6\u5df2\u8986\u76d6\uff0c\u53ef\u5c1d\u8bd5\u56de\u6eda\u7cfb\u7edf\u3001\u8054\u7cfb\u7ba1\u7406\u5458\u6216\u4f7f\u7528\u6570\u636e\u6062\u590d\u5de5\u5177\uff0c\u4f46\u540e\u8005\u901a\u5e38\u53ea\u80fd\u90e8\u5206\u6062\u590d\u6570\u636e\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/26\/2024052617272165670.jpg\" class=\"aligncenter\" title=\"mysql\u8bef\u5220\u9664\u6570\u636e\u5e93\u600e\u4e48\u6062\u590d\u63d2\u56fe\" alt=\"mysql\u8bef\u5220\u9664\u6570\u636e\u5e93\u600e\u4e48\u6062\u590d\u63d2\u56fe\" \/><\/p>\n<p><strong>MySQL \u8bef\u5220\u9664\u6570\u636e\u5e93\u7684\u6062\u590d\u65b9\u6cd5<\/strong><\/p>\n<p><strong>\u60c5\u51b5\u4e00\uff1a\u6570\u636e\u5e93\u6587\u4ef6\u672a\u88ab\u8986\u76d6<\/strong><\/p>\n<ul>\n<li>\u505c\u6b62 MySQL \u670d\u52a1\u3002<\/li>\n<li>\u627e\u5230\u5e76\u590d\u5236 ibdata1 \u548c ib_logfile* \u6587\u4ef6\u3002<\/li>\n<li>\u542f\u52a8 MySQL \u670d\u52a1\u3002<\/li>\n<li>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u65b0\u6570\u636e\u5e93\uff1aCREATE DATABASE \u6570\u636e\u5e93\u540d\u3002<\/li>\n<li>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6062\u590d\u6570\u636e\uff1a -u \u7528\u6237\u540d -p \u5bc6\u7801 -D \u6570\u636e\u5e93\u540d <\/li>\n<\/ul>\n<p><strong>\u60c5\u51b5\u4e8c\uff1a\u6570\u636e\u5e93\u6587\u4ef6\u5df2\u88ab\u8986\u76d6<\/strong><\/p>\n<ul>\n<li>\u5982\u679c\u53ef\u80fd\uff0c\u56de\u6eda\u7cfb\u7edf\u6216\u865a\u62df\u673a\u5230\u8bef\u5220\u524d\u7684\u72b6\u6001\u3002<\/li>\n<li>\u8054\u7cfb\u6570\u636e\u5e93\u7ba1\u7406\u5458\uff0c\u67e5\u770b\u662f\u5426\u6709\u6570\u636e\u5e93\u5907\u4efd\u3002<\/li>\n<li>\u4f7f\u7528\u7b2c\u4e09\u65b9\u6570\u636e\u6062\u590d\u5de5\u5177\uff08\u4f8b\u5982\uff0cInnoDB Recovery Tool\uff09\u3002 <strong>\u6ce8\u610f\uff1a<\/strong> \u6b64\u65b9\u6cd5\u901a\u5e38\u53ea\u80fd\u6062\u590d\u90e8\u5206\u6570\u636e\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u8bef\u5220\u9664\u6570\u636e\u5e93\u600e\u4e48\u6062\u590d\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u82e5\u6570\u636e\u5e93\u6587\u4ef6\u672a\u88ab\u8986\u76d6\uff0c\u590d\u5236 ibdata1 \u548c ib_logfile* \u6587\u4ef6\uff0c\u521b\u5efa\u65b0\u6570\u636e\u5e93\u5e76\u6062\u590d\u6570\u636e\u3002\u82e5\u6570\u636e\u5e93\u6587\u4ef6\u5df2\u8986\u76d6\uff0c\u53ef\u5c1d\u8bd5\u56de\u6eda\u7cfb\u7edf\u3001\u8054\u7cfb\u7ba1\u7406\u5458\u6216\u4f7f\u7528\u6570\u636e\u6062\u590d\u5de5\u5177\uff0c\u4f46\u540e\u8005\u901a\u5e38\u53ea\u80fd\u90e8\u5206\u6062\u590d\u6570\u636e\u3002 MySQL \u8bef\u5220\u9664\u6570\u636e\u5e93\u7684\u6062\u590d\u65b9\u6cd5 \u60c5\u51b5\u4e00\uff1a\u6570\u636e\u5e93\u6587\u4ef6\u672a\u88ab\u8986\u76d6 \u505c\u6b62 MySQL \u670d\u52a1\u3002 \u627e\u5230\u5e76\u590d\u5236 ibdata1 \u548c ib_logfile* \u6587\u4ef6\u3002 \u542f\u52a8 MySQL \u670d\u52a1\u3002 \u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u65b0\u6570\u636e\u5e93\uff1aCREATE DATABASE \u6570\u636e\u5e93\u540d\u3002 \u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6062\u590d\u6570\u636e\uff1a -u \u7528\u6237\u540d -p \u5bc6\u7801 -D \u6570\u636e\u5e93\u540d \u60c5\u51b5\u4e8c\uff1a\u6570\u636e\u5e93\u6587\u4ef6\u5df2\u88ab\u8986\u76d6 \u5982\u679c\u53ef\u80fd\uff0c\u56de\u6eda\u7cfb\u7edf\u6216\u865a\u62df\u673a\u5230\u8bef\u5220\u524d\u7684\u72b6\u6001\u3002 \u8054\u7cfb\u6570\u636e\u5e93\u7ba1\u7406\u5458\uff0c\u67e5\u770b\u662f\u5426\u6709\u6570\u636e\u5e93\u5907\u4efd\u3002 \u4f7f\u7528\u7b2c\u4e09\u65b9\u6570\u636e\u6062\u590d\u5de5\u5177\uff08\u4f8b\u5982\uff0cInnoDB Recovery Tool\uff09\u3002 \u6ce8\u610f\uff1a \u6b64\u65b9\u6cd5\u901a\u5e38\u53ea\u80fd\u6062\u590d\u90e8\u5206\u6570\u636e\u3002 \u4ee5\u4e0a\u5c31\u662f\u8bef\u5220\u9664\u6570\u636e\u5e93\u600e\u4e48\u6062\u590d\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u7f51\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-5246","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=5246"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5246\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=5246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=5246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=5246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}