{"id":54117,"date":"2024-10-09T16:58:15","date_gmt":"2024-10-09T08:58:15","guid":{"rendered":"https:\/\/server.hk\/cnblog\/54117\/"},"modified":"2024-10-09T16:58:15","modified_gmt":"2024-10-09T08:58:15","slug":"windows-server-2019-%e5%ae%89%e8%a3%9d-mysql-8-0","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/54117\/","title":{"rendered":"Windows Server 2019 \u5b89\u88dd MySQL 8.0"},"content":{"rendered":"<h1 id=\"windows-server-2019-%e5%ae%89%e8%a3%9d-mysql-8-0-EkTFVdrlNR\">Windows Server 2019 \u5b89\u88dd MySQL 8.0<\/h1>\n<p>\u5728\u7576\u4eca\u7684\u6578\u64da\u9a45\u52d5\u4e16\u754c\u4e2d\uff0cMySQL \u4f5c\u70ba\u4e00\u500b\u6d41\u884c\u7684\u958b\u6e90\u6578\u64da\u5eab\u7ba1\u7406\u7cfb\u7d71\uff0c\u5ee3\u6cdb\u61c9\u7528\u65bc\u5404\u7a2e\u61c9\u7528\u7a0b\u5e8f\u4e2d\u3002\u672c\u6587\u5c07\u6307\u5c0e\u60a8\u5982\u4f55\u5728 Windows Server 2019 \u4e0a\u5b89\u88dd MySQL 8.0\uff0c\u4e26\u63d0\u4f9b\u8a73\u7d30\u7684\u6b65\u9a5f\u548c\u6ce8\u610f\u4e8b\u9805\u3002<\/p>\n<h2 id=\"%e7%b3%bb%e7%b5%b1%e8%a6%81%e6%b1%82-EkTFVdrlNR\">\u7cfb\u7d71\u8981\u6c42<\/h2>\n<p>\u5728\u5b89\u88dd MySQL 8.0 \u4e4b\u524d\uff0c\u78ba\u4fdd\u60a8\u7684 Windows Server 2019 \u7b26\u5408\u4ee5\u4e0b\u7cfb\u7d71\u8981\u6c42\uff1a<\/p>\n<ul>\n<li>\u64cd\u4f5c\u7cfb\u7d71\uff1aWindows Server 2019<\/li>\n<li>\u5167\u5b58\uff1a\u81f3\u5c11 2 GB\uff08\u5efa\u8b70 4 GB \u6216\u66f4\u591a\uff09<\/li>\n<li>\u786c\u789f\u7a7a\u9593\uff1a\u81f3\u5c11 1 GB \u7684\u53ef\u7528\u7a7a\u9593<\/li>\n<li>\u8655\u7406\u5668\uff1a\u652f\u6301 x64 \u7684\u8655\u7406\u5668<\/li>\n<\/ul>\n<h2 id=\"%e4%b8%8b%e8%bc%89-mysql-8-0-EkTFVdrlNR\">\u4e0b\u8f09 MySQL 8.0<\/h2>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u5f9e MySQL \u5b98\u65b9\u7db2\u7ad9\u4e0b\u8f09 MySQL 8.0 \u7684\u5b89\u88dd\u5305\u3002\u8acb\u8a2a\u554f <a href=\"https:\/\/dev.mysql.com\/downloads\/mysql\/\" rel=\"nofollow noopener\" target=\"_blank\">MySQL \u4e0b\u8f09\u9801\u9762<\/a>\uff0c\u9078\u64c7\u9069\u5408 Windows \u7684\u7248\u672c\uff0c\u7136\u5f8c\u4e0b\u8f09 MSI \u5b89\u88dd\u5305\u3002<\/p>\n<h2 id=\"%e5%ae%89%e8%a3%9d-mysql-8-0-EkTFVdrlNR\">\u5b89\u88dd MySQL 8.0<\/h2>\n<p>\u4e0b\u8f09\u5b8c\u6210\u5f8c\uff0c\u6309\u7167\u4ee5\u4e0b\u6b65\u9a5f\u9032\u884c\u5b89\u88dd\uff1a<\/p>\n<ol>\n<li>\u96d9\u64ca\u4e0b\u8f09\u7684 MSI \u5b89\u88dd\u5305\u4ee5\u555f\u52d5\u5b89\u88dd\u7a0b\u5e8f\u3002<\/li>\n<li>\u5728\u5b89\u88dd\u5411\u5c0e\u4e2d\uff0c\u9078\u64c7\u201c\u5b89\u88dd\u985e\u578b\u201d\u3002\u5efa\u8b70\u9078\u64c7\u201c\u5b8c\u6574\u5b89\u88dd\u201d\u3002<\/li>\n<li>\u63a5\u4e0b\u4f86\uff0c\u60a8\u5c07\u770b\u5230\u201c\u7522\u54c1\u9078\u64c7\u201d\u9801\u9762\uff0c\u78ba\u4fdd\u9078\u64c7 MySQL Server \u548c MySQL Workbench\u3002<\/li>\n<li>\u5728\u201c\u914d\u7f6e MySQL Server\u201d\u9801\u9762\uff0c\u9078\u64c7\u201c\u958b\u767c\u8005\u9ed8\u8a8d\u201d\u914d\u7f6e\uff0c\u7136\u5f8c\u9ede\u64ca\u201c\u4e0b\u4e00\u6b65\u201d\u3002<\/li>\n<li>\u8a2d\u7f6e MySQL \u6839\u7528\u6236\u7684\u5bc6\u78bc\uff0c\u4e26\u9078\u64c7\u662f\u5426\u5141\u8a31\u9060\u7a0b\u8a2a\u554f\u3002<\/li>\n<li>\u5b8c\u6210\u914d\u7f6e\u5f8c\uff0c\u9ede\u64ca\u201c\u57f7\u884c\u201d\u4ee5\u958b\u59cb\u5b89\u88dd\u3002<\/li>\n<\/ol>\n<h2 id=\"%e9%a9%97%e8%ad%89%e5%ae%89%e8%a3%9d-EkTFVdrlNR\">\u9a57\u8b49\u5b89\u88dd<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u6b65\u9a5f\u9a57\u8b49 MySQL \u662f\u5426\u6b63\u78ba\u5b89\u88dd\uff1a<\/p>\n<ol>\n<li>\u6253\u958b\u547d\u4ee4\u63d0\u793a\u7b26\uff08CMD\uff09\u3002<\/li>\n<li>\u8f38\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u9032\u5165 MySQL \u5ba2\u6236\u7aef\uff1a<\/li>\n<pre><code>mysql -u root -p<\/code><\/pre>\n<li>\u8f38\u5165\u60a8\u5728\u5b89\u88dd\u904e\u7a0b\u4e2d\u8a2d\u7f6e\u7684\u5bc6\u78bc\u3002<\/li>\n<li>\u5982\u679c\u6210\u529f\u767b\u9304\uff0c\u60a8\u5c07\u770b\u5230 MySQL \u63d0\u793a\u7b26\uff0c\u8868\u793a\u5b89\u88dd\u6210\u529f\u3002<\/li>\n<\/ol>\n<h2 id=\"%e5%b8%b8%e8%a6%8b%e5%95%8f%e9%a1%8c-EkTFVdrlNR\">\u5e38\u898b\u554f\u984c<\/h2>\n<h3 id=\"1-%e5%a6%82%e4%bd%95%e9%87%8d%e7%bd%ae-mysql-%e5%af%86%e7%a2%bc%ef%bc%9f-EkTFVdrlNR\">1. \u5982\u4f55\u91cd\u7f6e MySQL \u5bc6\u78bc\uff1f<\/h3>\n<p>\u5982\u679c\u60a8\u5fd8\u8a18\u4e86 MySQL \u5bc6\u78bc\uff0c\u53ef\u4ee5\u901a\u904e\u4ee5\u4e0b\u6b65\u9a5f\u91cd\u7f6e\uff1a<\/p>\n<ol>\n<li>\u505c\u6b62 MySQL \u670d\u52d9\u3002<\/li>\n<li>\u4ee5\u5b89\u5168\u6a21\u5f0f\u555f\u52d5 MySQL\uff1a<\/li>\n<pre><code>mysqld --skip-grant-tables<\/code><\/pre>\n<li>\u5728\u53e6\u4e00\u500b\u547d\u4ee4\u63d0\u793a\u7b26\u4e2d\uff0c\u767b\u9304 MySQL \u4e26\u66f4\u65b0\u5bc6\u78bc\uff1a<\/li>\n<pre><code>UPDATE mysql.user SET authentication_string=PASSWORD('\u65b0\u5bc6\u78bc') WHERE User='root';<\/code><\/pre>\n<li>\u91cd\u65b0\u555f\u52d5 MySQL \u670d\u52d9\u3002<\/li>\n<\/ol>\n<h3 id=\"2-%e5%a6%82%e4%bd%95%e5%8d%b8%e8%bc%89-mysql%ef%bc%9f-EkTFVdrlNR\">2. \u5982\u4f55\u5378\u8f09 MySQL\uff1f<\/h3>\n<p>\u5982\u679c\u9700\u8981\u5378\u8f09 MySQL\uff0c\u53ef\u4ee5\u901a\u904e\u63a7\u5236\u9762\u677f\u7684\u201c\u7a0b\u5e8f\u548c\u529f\u80fd\u201d\u9078\u9805\u9032\u884c\u5378\u8f09\uff0c\u7136\u5f8c\u522a\u9664 MySQL \u7684\u6578\u64da\u76ee\u9304\u3002<\/p>\n<h2 id=\"%e7%b8%bd%e7%b5%90-EkTFVdrlNR\">\u7e3d\u7d50<\/h2>\n<p>\u5728 Windows Server 2019 \u4e0a\u5b89\u88dd MySQL 8.0 \u662f\u4e00\u500b\u76f8\u5c0d\u7c21\u55ae\u7684\u904e\u7a0b\uff0c\u53ea\u9700\u9075\u5faa\u4e0a\u8ff0\u6b65\u9a5f\u5373\u53ef\u5b8c\u6210\u3002\u7121\u8ad6\u60a8\u662f\u958b\u767c\u8005\u9084\u662f\u7cfb\u7d71\u7ba1\u7406\u54e1\uff0cMySQL \u90fd\u80fd\u70ba\u60a8\u7684\u61c9\u7528\u7a0b\u5e8f\u63d0\u4f9b\u5f37\u5927\u7684\u6578\u64da\u5eab\u652f\u6301\u3002\u5982\u679c\u60a8\u9700\u8981\u9032\u4e00\u6b65\u7684\u652f\u6301\u6216\u5c0b\u627e\u5408\u9069\u7684 <a href=\"https:\/\/server.hk\">VPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0c\u8acb\u8003\u616e\u8a2a\u554f Server.HK \u7372\u53d6\u66f4\u591a\u8cc7\u8a0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to install MySQL 8.0 on Windows Server 2019 with step-by-step instructions for a seamless setup and configuration.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-54117","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/54117","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=54117"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/54117\/revisions"}],"predecessor-version":[{"id":54118,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/54117\/revisions\/54118"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=54117"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=54117"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=54117"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}