{"id":5435,"date":"2024-11-14T08:52:22","date_gmt":"2024-11-14T00:52:22","guid":{"rendered":"https:\/\/fwq.ai\/blog\/5435\/"},"modified":"2024-11-14T08:52:22","modified_gmt":"2024-11-14T00:52:22","slug":"mysql%e5%ae%89%e8%a3%85%e5%90%8e%e6%80%8e%e4%b9%88%e6%b2%a1%e5%9b%be%e6%a0%87","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/5435\/","title":{"rendered":"mysql\u5b89\u88c5\u540e\u600e\u4e48\u6ca1\u56fe\u6807"},"content":{"rendered":"<blockquote><p>\n  mysql \u5b89\u88c5\u540e\u6ca1\u6709\u56fe\u6807\u53ef\u80fd\u662f\u56e0\u4e3a\u7f3a\u5c11\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u3001\u672a\u5173\u8054\u6587\u4ef6\u6269\u5c55\u540d\u6216\u7cfb\u7edf\u95ee\u9898\u3002\u89e3\u51b3\u65b9\u6cd5\u5305\u62ec\uff1a1. \u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\uff1b2. \u5173\u8054\u6587\u4ef6\u6269\u5c55\u540d\uff1b3. \u89e3\u51b3\u7cfb\u7edf\u95ee\u9898\uff08\u91cd\u5efa\u56fe\u6807\u7f13\u5b58\u6216\u91cd\u65b0\u6ce8\u518c\u56fe\u6807\u6587\u4ef6\uff09\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/28\/2024052813062394604.jpg\" class=\"aligncenter\" title=\"mysql\u5b89\u88c5\u540e\u600e\u4e48\u6ca1\u56fe\u6807\u63d2\u56fe\" alt=\"mysql\u5b89\u88c5\u540e\u600e\u4e48\u6ca1\u56fe\u6807\u63d2\u56fe\" \/><\/p>\n<p><strong>MySQL \u5b89\u88c5\u540e\u4e3a\u4ec0\u4e48\u6ca1\u6709\u56fe\u6807\uff1f<\/strong><\/p>\n<p>MySQL \u5b89\u88c5\u540e\u6ca1\u6709\u56fe\u6807\u53ef\u80fd\u662f\u7531\u4e8e\u4ee5\u4e0b\u539f\u56e0\uff1a<\/p>\n<p><strong>1. \u7f3a\u5c11\u684c\u9762\u5feb\u6377\u65b9\u5f0f<\/strong><\/p>\n<ul>\n<li>\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u6ca1\u6709\u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u3002<\/li>\n<li>\u5378\u8f7d\u540e\uff0c\u624b\u52a8\u5220\u9664\u4e86\u5feb\u6377\u65b9\u5f0f\u3002<\/li>\n<\/ul>\n<p><strong>2. \u6ca1\u6709\u5173\u8054\u6587\u4ef6\u6269\u5c55\u540d<\/strong><\/p>\n<ul>\n<li>Windows \u53ef\u80fd\u6ca1\u6709\u5c06 .sql \u6587\u4ef6\u6269\u5c55\u540d\u4e0e MySQL \u5173\u8054\u3002<\/li>\n<\/ul>\n<p><strong>3. \u7cfb\u7edf\u95ee\u9898<\/strong><\/p>\n<ul>\n<li>\u6ce8\u518c\u8868\u4e2d\u7684\u56fe\u6807\u6587\u4ef6\u8def\u5f84\u4e22\u5931\u6216\u635f\u574f\u3002<\/li>\n<li>\u56fe\u6807\u7f13\u5b58\u6587\u4ef6\u5df2\u635f\u574f\u3002<\/li>\n<\/ul>\n<p><strong>\u5982\u4f55\u89e3\u51b3\uff1a<\/strong><\/p>\n<p><strong>1. \u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00 MySQL \u5b89\u88c5\u76ee\u5f55\uff08\u901a\u5e38\u4e3a C:Program FilesMySQLMySQL Server X.X\uff09\u3002<\/li>\n<li>\u627e\u5230 MySQL \u6267\u884c\u6587\u4ef6 (.exe)\u3002<\/li>\n<li>\u53f3\u952e\u5355\u51fb mysql.exe\uff0c\u9009\u62e9\u201c\u53d1\u9001\u5230\u201d&gt;\u201c\u684c\u9762\uff08\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\uff09\u201d\u3002<\/li>\n<\/ul>\n<p><strong>2. \u5173\u8054\u6587\u4ef6\u6269\u5c55\u540d<\/strong><\/p>\n<ul>\n<li>\u53f3\u952e\u5355\u51fb\u4e00\u4e2a .sql \u6587\u4ef6\u3002<\/li>\n<li>\u9009\u62e9\u201c\u6253\u5f00\u65b9\u5f0f\u201d&gt;\u201c\u9009\u62e9\u53e6\u4e00\u4e2a\u5e94\u7528\u201d\u3002<\/li>\n<li>\u627e\u5230 MySQL \u5b89\u88c5\u76ee\u5f55\uff0c\u9009\u62e9 MySQL \u6267\u884c\u6587\u4ef6 (mysql.exe)\u3002<\/li>\n<li>\u52fe\u9009\u201c\u59cb\u7ec8\u4f7f\u7528\u6b64\u5e94\u7528\u201d\u5e76\u5355\u51fb\u201c\u786e\u5b9a\u201d\u3002<\/li>\n<\/ul>\n<p><strong>3. \u89e3\u51b3\u7cfb\u7edf\u95ee\u9898<\/strong><\/p>\n<ul>\n<li>\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u91cd\u5efa\u56fe\u6807\u7f13\u5b58\uff1a<\/li>\n<\/ul>\n<pre>ie4uinit.exe -show<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li>\u5982\u679c\u56fe\u6807\u4ecd\u7136\u4e22\u5931\uff0c\u8bf7\u5c1d\u8bd5\u91cd\u65b0\u6ce8\u518c MySQL \u5b89\u88c5\u76ee\u5f55\u4e2d\u7684\u56fe\u6807\u6587\u4ef6\u3002\u6253\u5f00\u547d\u4ee4\u63d0\u793a\u7b26\u5e76\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/li>\n<\/ul>\n<pre>regsvr32 \"C:Program FilesMySQLMySQL Server X.Xinmysql.ico\"<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ul>\n<li>\u66ff\u6362 X.X \u4e3a\u60a8\u7684 MySQL \u7248\u672c\u53f7\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5b89\u88c5\u540e\u600e\u4e48\u6ca1\u56fe\u6807\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>mysql \u5b89\u88c5\u540e\u6ca1\u6709\u56fe\u6807\u53ef\u80fd\u662f\u56e0\u4e3a\u7f3a\u5c11\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u3001\u672a\u5173\u8054\u6587\u4ef6\u6269\u5c55\u540d\u6216\u7cfb\u7edf\u95ee\u9898\u3002\u89e3\u51b3\u65b9\u6cd5\u5305\u62ec\uff1a1. \u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\uff1b2. \u5173\u8054\u6587\u4ef6\u6269\u5c55\u540d\uff1b3. \u89e3\u51b3\u7cfb\u7edf\u95ee\u9898\uff08\u91cd\u5efa\u56fe\u6807\u7f13\u5b58\u6216\u91cd\u65b0\u6ce8\u518c\u56fe\u6807\u6587\u4ef6\uff09\u3002 MySQL \u5b89\u88c5\u540e\u4e3a\u4ec0\u4e48\u6ca1\u6709\u56fe\u6807\uff1f MySQL \u5b89\u88c5\u540e\u6ca1\u6709\u56fe\u6807\u53ef\u80fd\u662f\u7531\u4e8e\u4ee5\u4e0b\u539f\u56e0\uff1a 1. \u7f3a\u5c11\u684c\u9762\u5feb\u6377\u65b9\u5f0f \u5b89\u88c5\u8fc7\u7a0b\u4e2d\u6ca1\u6709\u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u3002 \u5378\u8f7d\u540e\uff0c\u624b\u52a8\u5220\u9664\u4e86\u5feb\u6377\u65b9\u5f0f\u3002 2. \u6ca1\u6709\u5173\u8054\u6587\u4ef6\u6269\u5c55\u540d Windows \u53ef\u80fd\u6ca1\u6709\u5c06 .sql \u6587\u4ef6\u6269\u5c55\u540d\u4e0e MySQL \u5173\u8054\u3002 3. \u7cfb\u7edf\u95ee\u9898 \u6ce8\u518c\u8868\u4e2d\u7684\u56fe\u6807\u6587\u4ef6\u8def\u5f84\u4e22\u5931\u6216\u635f\u574f\u3002 \u56fe\u6807\u7f13\u5b58\u6587\u4ef6\u5df2\u635f\u574f\u3002 \u5982\u4f55\u89e3\u51b3\uff1a 1. \u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f \u6253\u5f00 MySQL \u5b89\u88c5\u76ee\u5f55\uff08\u901a\u5e38\u4e3a C:Program FilesMySQLMySQL Server X.X\uff09\u3002 \u627e\u5230 MySQL \u6267\u884c\u6587\u4ef6 (.exe)\u3002 \u53f3\u952e\u5355\u51fb mysql.exe\uff0c\u9009\u62e9\u201c\u53d1\u9001\u5230\u201d&gt;\u201c\u684c\u9762\uff08\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\uff09\u201d\u3002 2. \u5173\u8054\u6587\u4ef6\u6269\u5c55\u540d \u53f3\u952e\u5355\u51fb\u4e00\u4e2a .sql \u6587\u4ef6\u3002 \u9009\u62e9\u201c\u6253\u5f00\u65b9\u5f0f\u201d&gt;\u201c\u9009\u62e9\u53e6\u4e00\u4e2a\u5e94\u7528\u201d\u3002 \u627e\u5230 MySQL \u5b89\u88c5\u76ee\u5f55\uff0c\u9009\u62e9 MySQL \u6267\u884c\u6587\u4ef6 (mysql.exe)\u3002 \u52fe\u9009\u201c\u59cb\u7ec8\u4f7f\u7528\u6b64\u5e94\u7528\u201d\u5e76\u5355\u51fb\u201c\u786e\u5b9a\u201d\u3002 3. [&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-5435","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5435","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=5435"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/5435\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=5435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=5435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=5435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}