{"id":6540,"date":"2024-11-14T09:17:16","date_gmt":"2024-11-14T01:17:16","guid":{"rendered":"https:\/\/fwq.ai\/blog\/6540\/"},"modified":"2024-11-14T09:17:16","modified_gmt":"2024-11-14T01:17:16","slug":"mysql%e6%95%b0%e6%8d%ae%e5%ba%93%e6%80%8e%e4%b9%88%e5%af%bc%e5%87%ba%e5%a4%87%e4%bb%bd","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/6540\/","title":{"rendered":"mysql\u6570\u636e\u5e93\u600e\u4e48\u5bfc\u51fa\u5907\u4efd"},"content":{"rendered":"<blockquote><p>\n  \u5bfc\u51fa mysql \u6570\u636e\u5e93\u5907\u4efd\u7684\u6b65\u9aa4\uff1a\u8fde\u63a5\u5230 mysql \u670d\u52a1\u5668\u3002\u4f7f\u7528 mysqldump \u547d\u4ee4\u8f6c\u50a8\u6570\u636e\u5e93\u5230 sql \u6587\u4ef6\u3002\u53ef\u9009\uff1a\u4f7f\u7528 gzip \u6216 bzip2 \u538b\u7f29\u5907\u4efd\u6587\u4ef6\u4ee5\u8282\u7701\u5b58\u50a8\u7a7a\u95f4\u3002\u4e0a\u4f20\u6216\u79fb\u52a8\u5907\u4efd\u6587\u4ef6\u5230\u5b89\u5168\u7684\u4f4d\u7f6e\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202408\/05\/2024080520034740372.jpg\" class=\"aligncenter\" title=\"mysql\u6570\u636e\u5e93\u600e\u4e48\u5bfc\u51fa\u5907\u4efd\u63d2\u56fe\" alt=\"mysql\u6570\u636e\u5e93\u600e\u4e48\u5bfc\u51fa\u5907\u4efd\u63d2\u56fe\" \/><\/p>\n<p><strong>MySQL \u6570\u636e\u5e93\u5bfc\u51fa\u5907\u4efd<\/strong><\/p>\n<p><strong>\u5982\u4f55\u5bfc\u51fa MySQL \u6570\u636e\u5e93\u5907\u4efd\uff1f<\/strong><\/p>\n<p>\u5bfc\u51fa MySQL \u6570\u636e\u5e93\u5907\u4efd\u53ef\u4ee5\u4fdd\u62a4\u6570\u636e\u514d\u53d7\u610f\u5916\u4e22\u5931\u6216\u635f\u574f\u3002\u4ee5\u4e0b\u6b65\u9aa4\u6307\u5bfc\u60a8\u5982\u4f55\u5907\u4efd\u6570\u636e\u5e93\uff1a<\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u5efa\u7acb\u8fde\u63a5<\/strong><\/p>\n<p>\u4f7f\u7528\u547d\u4ee4\u884c\u6216 GUI \u5de5\u5177\uff08\u4f8b\u5982 MySQL Workbench\uff09\u8fde\u63a5\u5230 MySQL \u670d\u52a1\u5668\u3002<\/p>\n<p><strong>\u6b65\u9aa4 2\uff1a\u8f6c\u50a8\u6570\u636e\u5e93<\/strong><\/p>\n<p>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5c06\u6570\u636e\u5e93\u8f6c\u50a8\u5230 SQL \u6587\u4ef6\u4e2d\uff1a<\/p>\n<pre>mysqldump -u &lt;\u7528\u6237\u540d&gt; -p &lt;\u5bc6\u7801&gt; &lt;\u6570\u636e\u5e93\u540d\u79f0&gt; &gt; &lt;\u5907\u4efd\u6587\u4ef6&gt;.sql<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li>\u66ff\u6362 \u548c \u4e3a\u60a8\u7684 MySQL \u7528\u6237\u540d\u548c\u5bc6\u7801\u3002<\/li>\n<li>\u66ff\u6362 \u4e3a\u8981\u5907\u4efd\u7684\u6570\u636e\u5e93\u540d\u79f0\u3002<\/li>\n<li>\u66ff\u6362 \u4e3a\u8981\u5b58\u50a8 SQL \u6587\u4ef6\u7684\u8def\u5f84\u548c\u540d\u79f0\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 3\uff1a\u53ef\u9009\uff1a\u538b\u7f29\u5907\u4efd<\/strong><\/p>\n<p>\u8981\u8282\u7701\u5b58\u50a8\u7a7a\u95f4\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 gzip \u6216 bzip2 \u7b49\u5de5\u5177\u538b\u7f29\u5907\u4efd\u6587\u4ef6\uff1a<\/p>\n<pre>gzip &lt;\u5907\u4efd\u6587\u4ef6&gt;.sql<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u6b65\u9aa4 4\uff1a\u4e0a\u4f20\u6216\u79fb\u52a8\u5907\u4efd<\/strong><\/p>\n<p>\u5c06\u5907\u4efd\u6587\u4ef6\u4e0a\u4f20\u5230\u5b89\u5168\u7684\u4f4d\u7f6e\uff08\u4f8b\u5982\u4e91\u5b58\u50a8\u6216\u5916\u90e8\u786c\u76d8\u9a71\u52a8\u5668\uff09\u6216\u5c06\u5176\u79fb\u52a8\u5230\u5176\u4ed6\u670d\u52a1\u5668\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u6570\u636e\u5e93\u600e\u4e48\u5bfc\u51fa\u5907\u4efd\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>\u5bfc\u51fa mysql \u6570\u636e\u5e93\u5907\u4efd\u7684\u6b65\u9aa4\uff1a\u8fde\u63a5\u5230 mysql \u670d\u52a1\u5668\u3002\u4f7f\u7528 mysqldump \u547d\u4ee4\u8f6c\u50a8\u6570\u636e\u5e93\u5230 sql \u6587\u4ef6\u3002\u53ef\u9009\uff1a\u4f7f\u7528 gzip \u6216 bzip2 \u538b\u7f29\u5907\u4efd\u6587\u4ef6\u4ee5\u8282\u7701\u5b58\u50a8\u7a7a\u95f4\u3002\u4e0a\u4f20\u6216\u79fb\u52a8\u5907\u4efd\u6587\u4ef6\u5230\u5b89\u5168\u7684\u4f4d\u7f6e\u3002 MySQL \u6570\u636e\u5e93\u5bfc\u51fa\u5907\u4efd \u5982\u4f55\u5bfc\u51fa MySQL \u6570\u636e\u5e93\u5907\u4efd\uff1f \u5bfc\u51fa MySQL \u6570\u636e\u5e93\u5907\u4efd\u53ef\u4ee5\u4fdd\u62a4\u6570\u636e\u514d\u53d7\u610f\u5916\u4e22\u5931\u6216\u635f\u574f\u3002\u4ee5\u4e0b\u6b65\u9aa4\u6307\u5bfc\u60a8\u5982\u4f55\u5907\u4efd\u6570\u636e\u5e93\uff1a \u6b65\u9aa4 1\uff1a\u5efa\u7acb\u8fde\u63a5 \u4f7f\u7528\u547d\u4ee4\u884c\u6216 GUI \u5de5\u5177\uff08\u4f8b\u5982 MySQL Workbench\uff09\u8fde\u63a5\u5230 MySQL \u670d\u52a1\u5668\u3002 \u6b65\u9aa4 2\uff1a\u8f6c\u50a8\u6570\u636e\u5e93 \u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u5c06\u6570\u636e\u5e93\u8f6c\u50a8\u5230 SQL \u6587\u4ef6\u4e2d\uff1a mysqldump -u &lt;\u7528\u6237\u540d&gt; -p &lt;\u5bc6\u7801&gt; &lt;\u6570\u636e\u5e93\u540d\u79f0&gt; &gt; &lt;\u5907\u4efd\u6587\u4ef6&gt;.sql \u767b\u5f55\u540e\u590d\u5236 \u66ff\u6362 \u548c \u4e3a\u60a8\u7684 MySQL \u7528\u6237\u540d\u548c\u5bc6\u7801\u3002 \u66ff\u6362 \u4e3a\u8981\u5907\u4efd\u7684\u6570\u636e\u5e93\u540d\u79f0\u3002 \u66ff\u6362 \u4e3a\u8981\u5b58\u50a8 SQL \u6587\u4ef6\u7684\u8def\u5f84\u548c\u540d\u79f0\u3002 [&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-6540","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6540","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=6540"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6540\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=6540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=6540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=6540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}