{"id":5458,"date":"2024-11-14T10:20:21","date_gmt":"2024-11-14T02:20:21","guid":{"rendered":"https:\/\/fwq.ai\/blog\/5458\/"},"modified":"2024-11-14T10:20:21","modified_gmt":"2024-11-14T02:20:21","slug":"mysql%e7%9a%84frm%e6%96%87%e4%bb%b6%e6%80%8e%e4%b9%88%e6%89%93%e5%bc%80","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/5458\/","title":{"rendered":"mysql\u7684frm\u6587\u4ef6\u600e\u4e48\u6253\u5f00"},"content":{"rendered":"<p><strong>\u5982\u4f55\u6253\u5f00  \u7684 .frm \u6587\u4ef6<\/strong><\/p>\n<p>MySQL \u4e2d\u7684 .frm \u6587\u4ef6\u662f\u8868\u5b9a\u4e49\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u8868\u7684\u7ed3\u6784\u4fe1\u606f\uff0c\u4f8b\u5982\u5b57\u6bb5\u5217\u8868\u3001\u952e\u548c\u5b58\u50a8\u5f15\u64ce\u3002\u5b83\u4eec\u901a\u5e38\u4e0e\u8868\u6570\u636e\u6587\u4ef6 (.ibd) \u4e00\u8d77\u5b58\u50a8\u3002\u4e86\u89e3\u5982\u4f55\u6253\u5f00 .frm \u6587\u4ef6\u5bf9\u4e8e\u7ba1\u7406\u548c\u5206\u6790\u6570\u636e\u5e93\u975e\u5e38\u6709\u7528\u3002<\/p>\n<p><strong>\u5982\u4f55\u6253\u5f00 .frm \u6587\u4ef6<\/strong><\/p>\n<p>\u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6253\u5f00 .frm \u6587\u4ef6\uff1a<\/p>\n<p><strong>1. \u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668<\/strong><\/p>\n<p>\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff0c\u4f8b\u5982\u8bb0\u4e8b\u672c\u6216 Sublime Text\u3002\u53ea\u9700\u5728\u8fd9\u4e9b\u7f16\u8f91\u5668\u4e2d\u6253\u5f00 .frm \u6587\u4ef6\u5373\u53ef\u67e5\u770b\u5176\u5185\u5bb9\u3002\u4e0d\u8fc7\uff0c\u8fd9\u79cd\u65b9\u6cd5\u7f3a\u4e4f\u8bed\u6cd5\u9ad8\u4eae\u548c\u683c\u5f0f\u5316\uff0c\u53ef\u80fd\u4f1a\u8ba9\u6587\u4ef6\u96be\u4ee5\u9605\u8bfb\u3002<\/p>\n<p><strong>2. \u4f7f\u7528 MySQL Workbench<\/strong><\/p>\n<p>MySQL Workbench \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684 GUI \u5de5\u5177\uff0c\u53ef\u7528\u4e8e\u7ba1\u7406 MySQL \u6570\u636e\u5e93\u3002\u5b83\u5177\u6709\u4e00\u4e2a\u5185\u7f6e\u7684 SQL \u7f16\u8f91\u5668\uff0c\u53ef\u4ee5\u8ba9\u4f60\u6253\u5f00\u548c\u67e5\u770b .frm \u6587\u4ef6\u3002\u901a\u8fc7\u9009\u62e9\u201cFile\u201d&gt;\u201cOpen SQL File\u201d\u5e76\u5bfc\u822a\u5230 .frm \u6587\u4ef6\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u505a\u5230\u8fd9\u4e00\u70b9\u3002<\/p>\n<p><strong>3. \u4f7f\u7528\u547d\u4ee4\u884c<\/strong><\/p>\n<p>\u8fd8\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177 mysqlfrm \u6253\u5f00 .frm \u6587\u4ef6\u3002\u8fd9\u4e2a\u5de5\u5177\u53ef\u4ee5\u89e3\u6790 .frm \u6587\u4ef6\u5e76\u663e\u793a\u5176\u5185\u5bb9\u3002\u8981\u4f7f\u7528\u6b64\u5de5\u5177\uff0c\u8bf7\u8f6c\u5230 .frm \u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>mysqlfrm -d &lt;file_name&gt;.frm<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u5185\u5bb9<\/strong><\/p>\n<p>.frm \u6587\u4ef6\u5305\u542b\u4ee5\u4e0b\u4fe1\u606f\uff1a<\/p>\n<ul>\n<li>\u8868\u540d\u79f0<\/li>\n<li>\u5b57\u6bb5\u5217\u8868\uff0c\u5305\u62ec\u540d\u79f0\u3001\u7c7b\u578b\u548c\u5c5e\u6027<\/li>\n<li>\u952e\u548c\u7d22\u5f15\uff0c\u5305\u62ec\u540d\u79f0\u548c\u7c7b\u578b<\/li>\n<li>\u5b58\u50a8\u5f15\u64ce<\/li>\n<li>\u8868\u9009\u9879\uff0c\u4f8b\u5982\u884c\u683c\u5f0f\u548c\u5b57\u7b26\u96c6<\/li>\n<\/ul>\n<p><strong>\u7528\u9014<\/strong><\/p>\n<p>\u6253\u5f00 .frm \u6587\u4ef6\u53ef\u4ee5\u5e2e\u52a9\u4f60\u5728\u4ee5\u4e0b\u65b9\u9762\uff1a<\/p>\n<ul>\n<li>\u5206\u6790\u8868\u7ed3\u6784<\/li>\n<li>\u8bc6\u522b\u8868\u4e4b\u95f4\u7684\u5173\u7cfb<\/li>\n<li>\u4f18\u5316\u67e5\u8be2\u6027\u80fd<\/li>\n<li>\u8bca\u65ad\u9519\u8bef<\/li>\n<li>\u6062\u590d\u5df2\u5220\u9664\u7684\u8868<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u7684frm\u6587\u4ef6\u600e\u4e48\u6253\u5f00\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>\u5982\u4f55\u6253\u5f00 \u7684 .frm \u6587\u4ef6 MySQL \u4e2d\u7684 .frm \u6587\u4ef6\u662f\u8868\u5b9a\u4e49\u6587\u4ef6\uff0c\u5176\u4e2d\u5305\u542b\u8868\u7684\u7ed3\u6784\u4fe1\u606f\uff0c\u4f8b\u5982\u5b57\u6bb5\u5217\u8868\u3001\u952e\u548c\u5b58\u50a8\u5f15\u64ce\u3002\u5b83\u4eec\u901a\u5e38\u4e0e\u8868\u6570\u636e\u6587\u4ef6 (.ibd) \u4e00\u8d77\u5b58\u50a8\u3002\u4e86\u89e3\u5982\u4f55\u6253\u5f00 .frm \u6587\u4ef6\u5bf9\u4e8e\u7ba1\u7406\u548c\u5206\u6790\u6570\u636e\u5e93\u975e\u5e38\u6709\u7528\u3002 \u5982\u4f55\u6253\u5f00 .frm \u6587\u4ef6 \u6709\u51e0\u79cd\u65b9\u6cd5\u53ef\u4ee5\u6253\u5f00 .frm \u6587\u4ef6\uff1a 1. \u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668 \u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u6587\u672c\u7f16\u8f91\u5668\uff0c\u4f8b\u5982\u8bb0\u4e8b\u672c\u6216 Sublime Text\u3002\u53ea\u9700\u5728\u8fd9\u4e9b\u7f16\u8f91\u5668\u4e2d\u6253\u5f00 .frm \u6587\u4ef6\u5373\u53ef\u67e5\u770b\u5176\u5185\u5bb9\u3002\u4e0d\u8fc7\uff0c\u8fd9\u79cd\u65b9\u6cd5\u7f3a\u4e4f\u8bed\u6cd5\u9ad8\u4eae\u548c\u683c\u5f0f\u5316\uff0c\u53ef\u80fd\u4f1a\u8ba9\u6587\u4ef6\u96be\u4ee5\u9605\u8bfb\u3002 2. \u4f7f\u7528 MySQL Workbench MySQL Workbench \u662f\u4e00\u6b3e\u529f\u80fd\u5f3a\u5927\u7684 GUI \u5de5\u5177\uff0c\u53ef\u7528\u4e8e\u7ba1\u7406 MySQL \u6570\u636e\u5e93\u3002\u5b83\u5177\u6709\u4e00\u4e2a\u5185\u7f6e\u7684 SQL \u7f16\u8f91\u5668\uff0c\u53ef\u4ee5\u8ba9\u4f60\u6253\u5f00\u548c\u67e5\u770b .frm \u6587\u4ef6\u3002\u901a\u8fc7\u9009\u62e9\u201cFile\u201d&gt;\u201cOpen SQL File\u201d\u5e76\u5bfc\u822a\u5230 .frm \u6587\u4ef6\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u505a\u5230\u8fd9\u4e00\u70b9\u3002 3. \u4f7f\u7528\u547d\u4ee4\u884c \u8fd8\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177 mysqlfrm \u6253\u5f00 .frm \u6587\u4ef6\u3002\u8fd9\u4e2a\u5de5\u5177\u53ef\u4ee5\u89e3\u6790 .frm \u6587\u4ef6\u5e76\u663e\u793a\u5176\u5185\u5bb9\u3002\u8981\u4f7f\u7528\u6b64\u5de5\u5177\uff0c\u8bf7\u8f6c\u5230 .frm \u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\u5e76\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a [&hellip;]<\/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-5458","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5458","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=5458"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5458\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=5458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=5458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=5458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}