{"id":6184,"date":"2024-11-14T11:19:32","date_gmt":"2024-11-14T03:19:32","guid":{"rendered":"https:\/\/fwq.ai\/blog\/6184\/"},"modified":"2024-11-14T11:19:32","modified_gmt":"2024-11-14T03:19:32","slug":"mysql%e5%ae%89%e8%a3%85%e5%a6%82%e4%bd%95%e6%8c%87%e5%ae%9a%e5%ae%89%e8%a3%85%e8%b7%af%e5%be%84","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/6184\/","title":{"rendered":"mysql\u5b89\u88c5\u5982\u4f55\u6307\u5b9a\u5b89\u88c5\u8def\u5f84"},"content":{"rendered":"<blockquote><p>\n  \u5982\u4f55\u6307\u5b9a mysql \u5b89\u88c5\u8def\u5f84\uff1f\u4e0b\u8f7d mysql \u5b89\u88c5\u5305\u3002\u5c06\u5b89\u88c5\u5305\u89e3\u538b\u7f29\u5230\u6307\u5b9a\u8def\u5f84\u3002\u4ee5\u7ba1\u7406\u5458\u6743\u9650\u6253\u5f00\u547d\u4ee4\u884c\u5e76\u5bfc\u822a\u5230\u89e3\u538b\u76ee\u5f55\u3002\u6267\u884c\u5b89\u88c5\u547d\u4ee4\uff0c\u4f7f\u7528 &#8211;target-dir \u9009\u9879\u6307\u5b9a\u5b89\u88c5\u8def\u5f84\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202406\/14\/2024061405154449941.jpg\" class=\"aligncenter\" title=\"mysql\u5b89\u88c5\u5982\u4f55\u6307\u5b9a\u5b89\u88c5\u8def\u5f84\u63d2\u56fe\" alt=\"mysql\u5b89\u88c5\u5982\u4f55\u6307\u5b9a\u5b89\u88c5\u8def\u5f84\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u6307\u5b9a MySQL \u5b89\u88c5\u8def\u5f84<\/strong><\/p>\n<p>\u5b89\u88c5 MySQL \u65f6\u901a\u5e38\u4f1a\u9ed8\u8ba4\u5b89\u88c5\u5728\u7cfb\u7edf\u6307\u5b9a\u7684\u76ee\u5f55\u4e2d\uff0c\u4f46\u6709\u65f6\u6211\u4eec\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u5c06 MySQL \u5b89\u88c5\u5230\u5176\u4ed6\u4f4d\u7f6e\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u6307\u5b9a MySQL \u7684\u5b89\u88c5\u8def\u5f84\u3002<\/p>\n<p><strong>\u6b65\u9aa4\uff1a<\/strong><\/p>\n<p>\u8981\u6307\u5b9a MySQL \u7684\u5b89\u88c5\u8def\u5f84\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li> <strong>\u4e0b\u8f7d MySQL \u5b89\u88c5\u5305\uff1a<\/strong>\u4ece MySQL \u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u9002\u7528\u4e8e\u60a8\u7cfb\u7edf\u7684 MySQL \u5b89\u88c5\u5305\u3002<\/li>\n<li> <strong>\u89e3\u538b\u7f29\u5b89\u88c5\u5305\uff1a<\/strong>\u5c06\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305\u89e3\u538b\u7f29\u5230\u60a8\u5e0c\u671b\u7684\u5b89\u88c5\u8def\u5f84\u4e2d\u3002<\/li>\n<li> <strong>\u6253\u5f00\u547d\u4ee4\u884c\uff1a<\/strong>\u4f7f\u7528\u7ba1\u7406\u5458\u6743\u9650\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\u3002<\/li>\n<li> <strong>\u5bfc\u822a\u5230\u89e3\u538b\u76ee\u5f55\uff1a<\/strong>\u4f7f\u7528 cd \u547d\u4ee4\u5bfc\u822a\u5230\u60a8\u89e3\u538b\u5b89\u88c5\u5305\u7684\u76ee\u5f55\u3002<\/li>\n<li> <strong>\u6267\u884c\u5b89\u88c5\u547d\u4ee4\uff1a<\/strong>\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5f00\u59cb\u5b89\u88c5 MySQL\uff0c\u5176\u4e2d &#8211;target-dir \u9009\u9879\u6307\u5b9a\u5b89\u88c5\u8def\u5f84\uff1a<\/li>\n<\/ol>\n<pre>msiexec \/i mysql-installer-community-x.y.z.msi --target-dir=\"C:PathToMySQL\"<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5176\u4e2d\uff1a<\/p>\n<ul>\n<li>x.y.z \u4e3a MySQL \u7248\u672c\u53f7<\/li>\n<li>&#8220;C:PathToMySQL&#8221; \u4e3a\u60a8\u5e0c\u671b\u5b89\u88c5 MySQL \u7684\u5b8c\u6574\u8def\u5f84<\/li>\n<\/ul>\n<p><strong>\u793a\u4f8b\uff1a<\/strong><\/p>\n<p>\u4f8b\u5982\uff0c\u8981\u5c06 MySQL 8.0.30 \u5b89\u88c5\u5230 C:MySQL \u8def\u5f84\uff0c\u8bf7\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>msiexec \/i mysql-installer-community-8.0.30.msi --target-dir=\"C:MySQL\"<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p><strong>\u6ce8\u610f\uff1a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u60a8\u62e5\u6709\u8db3\u591f\u7684\u6743\u9650\u5728\u6307\u5b9a\u7684\u8def\u5f84\u4e2d\u5b89\u88c5 MySQL\u3002<\/li>\n<li>\u5982\u679c\u60a8\u4f7f\u7528\u7684\u662f Windows \u7cfb\u7edf\uff0c\u8bf7\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884c\u547d\u4ee4\u884c\u4ee5\u6210\u529f\u5b89\u88c5\u3002<\/li>\n<li>\u5b89\u88c5\u5b8c\u6210\u540e\uff0cMySQL \u7684\u6570\u636e\u76ee\u5f55\u5c06\u4f4d\u4e8e\u5b89\u88c5\u8def\u5f84\u4e0b\u7684 data \u5b50\u76ee\u5f55\u4e2d\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5b89\u88c5\u5982\u4f55\u6307\u5b9a\u5b89\u88c5\u8def\u5f84\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\u6307\u5b9a mysql \u5b89\u88c5\u8def\u5f84\uff1f\u4e0b\u8f7d mysql \u5b89\u88c5\u5305\u3002\u5c06\u5b89\u88c5\u5305\u89e3\u538b\u7f29\u5230\u6307\u5b9a\u8def\u5f84\u3002\u4ee5\u7ba1\u7406\u5458\u6743\u9650\u6253\u5f00\u547d\u4ee4\u884c\u5e76\u5bfc\u822a\u5230\u89e3\u538b\u76ee\u5f55\u3002\u6267\u884c\u5b89\u88c5\u547d\u4ee4\uff0c\u4f7f\u7528 &#8211;target-dir \u9009\u9879\u6307\u5b9a\u5b89\u88c5\u8def\u5f84\u3002 \u5982\u4f55\u6307\u5b9a MySQL \u5b89\u88c5\u8def\u5f84 \u5b89\u88c5 MySQL \u65f6\u901a\u5e38\u4f1a\u9ed8\u8ba4\u5b89\u88c5\u5728\u7cfb\u7edf\u6307\u5b9a\u7684\u76ee\u5f55\u4e2d\uff0c\u4f46\u6709\u65f6\u6211\u4eec\u9700\u8981\u6839\u636e\u5b9e\u9645\u60c5\u51b5\u5c06 MySQL \u5b89\u88c5\u5230\u5176\u4ed6\u4f4d\u7f6e\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u6307\u5b9a MySQL \u7684\u5b89\u88c5\u8def\u5f84\u3002 \u6b65\u9aa4\uff1a \u8981\u6307\u5b9a MySQL \u7684\u5b89\u88c5\u8def\u5f84\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a \u4e0b\u8f7d MySQL \u5b89\u88c5\u5305\uff1a\u4ece MySQL \u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u9002\u7528\u4e8e\u60a8\u7cfb\u7edf\u7684 MySQL \u5b89\u88c5\u5305\u3002 \u89e3\u538b\u7f29\u5b89\u88c5\u5305\uff1a\u5c06\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305\u89e3\u538b\u7f29\u5230\u60a8\u5e0c\u671b\u7684\u5b89\u88c5\u8def\u5f84\u4e2d\u3002 \u6253\u5f00\u547d\u4ee4\u884c\uff1a\u4f7f\u7528\u7ba1\u7406\u5458\u6743\u9650\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\u3002 \u5bfc\u822a\u5230\u89e3\u538b\u76ee\u5f55\uff1a\u4f7f\u7528 cd \u547d\u4ee4\u5bfc\u822a\u5230\u60a8\u89e3\u538b\u5b89\u88c5\u5305\u7684\u76ee\u5f55\u3002 \u6267\u884c\u5b89\u88c5\u547d\u4ee4\uff1a\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5f00\u59cb\u5b89\u88c5 MySQL\uff0c\u5176\u4e2d &#8211;target-dir \u9009\u9879\u6307\u5b9a\u5b89\u88c5\u8def\u5f84\uff1a msiexec \/i mysql-installer-community-x.y.z.msi &#8211;target-dir=&#8221;C:PathToMySQL&#8221; \u767b\u5f55\u540e\u590d\u5236 \u5176\u4e2d\uff1a x.y.z \u4e3a MySQL \u7248\u672c\u53f7 &#8220;C:PathToMySQL&#8221; \u4e3a\u60a8\u5e0c\u671b\u5b89\u88c5 MySQL \u7684\u5b8c\u6574\u8def\u5f84 \u793a\u4f8b\uff1a \u4f8b\u5982\uff0c\u8981\u5c06 MySQL 8.0.30 [&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-6184","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6184","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=6184"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/6184\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=6184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=6184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=6184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}