{"id":605,"date":"2022-06-13T21:25:50","date_gmt":"2022-06-13T13:25:50","guid":{"rendered":"https:\/\/blog.lijiajia.top\/?p=605"},"modified":"2026-06-19T17:53:12","modified_gmt":"2026-06-19T09:53:12","slug":"win11%e5%ae%89%e8%a3%85mysql8-%e5%85%8d%e5%ae%89%e8%a3%85zip%e7%89%88","status":"publish","type":"post","link":"https:\/\/blog.ttwow.top\/?p=605","title":{"rendered":"Win11\u5b89\u88c5Mysql8 \u514d\u5b89\u88c5Zip\u7248"},"content":{"rendered":"<h2>\u5b89\u88c5<\/h2>\n<p>\uff081\uff09\u89e3\u538b-\u8fdb\u5165bin\u6587\u4ef6\u7684\u76ee\u5f55\uff08\u7ba1\u7406\u5458\uff09<br \/>\n\uff082\uff09\u521d\u59cb\u5316 mysqld --initialize<br \/>\n\uff083\uff09\u5b89\u88c5\u670d\u52a1 mysqld --install mysql(\u670d\u52a1\u540d\u53ef\u4ee5\u81ea\u5b9a\u4e49)<br \/>\n\uff084\uff09\u542f\u52a8 net start mysql<\/p>\n<p>my.ini\u6587\u4ef6<\/p>\n<pre><code class=\"language-shell\">[mysqld]\n\n# \u8bbe\u7f6e3306\u7aef\u53e3\nport=3306\n\n# \u8bbe\u7f6emysql\u7684\u5b89\u88c5\u76ee\u5f55\nbasedir=C:\\\\Java\\\\Mysql\\\\mysql-8.0.29-winx64\n# \u5207\u8bb0\u6b64\u5904\u4e00\u5b9a\u8981\u7528\u53cc\u659c\u6760\\\\\uff0c\u5355\u659c\u6760\u8fd9\u91cc\u4f1a\u51fa\u9519\u3002\n# \u8bbe\u7f6emysql\u6570\u636e\u5e93\u7684\u6570\u636e\u7684\u5b58\u653e\u76ee\u5f55\ndatadir=C:\\\\Java\\\\Mysql\\\\mysql-8.0.29-winx64\\\\Data\n# \u6b64\u5904\u540c\u4e0a\n\n# \u5141\u8bb8\u6700\u5927\u8fde\u63a5\u6570\nmax_connections=200\n\n# \u5141\u8bb8\u8fde\u63a5\u5931\u8d25\u7684\u6b21\u6570\u3002\u8fd9\u662f\u4e3a\u4e86\u9632\u6b62\u6709\u4eba\u4ece\u8be5\u4e3b\u673a\u8bd5\u56fe\u653b\u51fb\u6570\u636e\u5e93\u7cfb\u7edf\nmax_connect_errors=10\n\n# \u670d\u52a1\u7aef\u4f7f\u7528\u7684\u5b57\u7b26\u96c6\u9ed8\u8ba4\u4e3aUTF8\ncharacter-set-server=utf8\n# \u521b\u5efa\u65b0\u8868\u65f6\u5c06\u4f7f\u7528\u7684\u9ed8\u8ba4\u5b58\u50a8\u5f15\u64ce\ndefault-storage-engine=INNODB\n# \u9ed8\u8ba4\u4f7f\u7528\u201cmysql_native_password\u201d\u63d2\u4ef6\u8ba4\u8bc1\ndefault_authentication_plugin=mysql_native_password\n[mysql]\n# \u8bbe\u7f6emysql\u5ba2\u6237\u7aef\u9ed8\u8ba4\u5b57\u7b26\u96c6\ndefault-character-set=utf8\n[client]\n# \u8bbe\u7f6emysql\u5ba2\u6237\u7aef\u8fde\u63a5\u670d\u52a1\u7aef\u65f6\u9ed8\u8ba4\u4f7f\u7528\u7684\u7aef\u53e3\nport=3306\ndefault-character-set=utf8<\/code><\/pre>\n<h2>\u5378\u8f7d<\/h2>\n<p><a href=\"https:\/\/blog.csdn.net\/u010411264\/article\/details\/112973024\">https:\/\/blog.csdn.net\/u010411264\/article\/details\/112973024<\/a><\/p>\n<h3>\u5173\u95ed MySQL\u670d\u52a1<\/h3>\n<p>net stop mysql\u548c net start mysql\u662f\u76f8\u53cd\u7684<\/p>\n<h2>\u5220\u9664\u670d\u52a1<\/h2>\n<p>mysqld -remove mysql<\/p>\n<h3>\u6253\u5f00 regedit \u6ce8\u518c\u8868<\/h3>\n<p>\u67e5\u627e\u641c\u7d22\u5230\u7684mysql\u670d\u52a1<\/p>\n<h2>\u4fee\u6539\u5bc6\u7801<\/h2>\n<p><a href=\"https:\/\/blog.csdn.net\/qq_43342301\/article\/details\/91288891\">https:\/\/blog.csdn.net\/qq_43342301\/article\/details\/91288891<\/a><br \/>\n\u5173\u95edmysql\u670d\u52a1<br \/>\n\u5f00\u542f\u514d\u5bc6\u7801<\/p>\n<pre><code class=\"language-shell\">mysqld --console --skip-grant-tables --shared-memory <\/code><\/pre>\n<p>\u53e6\u5f00\u542f\u4e00\u4e2a\u7ba1\u7406\u5458cmd<br \/>\n\u5148\u5c06\u5bc6\u7801\u7f6e\u4e3a\u7a7a<\/p>\n<pre><code class=\"language-sql\">use mysql; (\u4f7f\u7528mysql\u6570\u636e\u8868)\nupdate user set authentication_string=&#039;&#039; where user=&#039;root&#039;;\uff08\u5c06\u5bc6\u7801\u7f6e\u4e3a\u7a7a\uff09\nquit; (\u7136\u540e\u9000\u51faMysql)<\/code><\/pre>\n<p>\u518d\u5f00\u542f\u4e00\u4e2a\u7ba1\u7406\u5458cmd<\/p>\n<pre><code class=\"language-markdown\">net stop mysql(\u5173\u95edmysql\u670d\u52a1,\u867d\u7136\u4f1a\u663e\u793a\u6ca1\u6709\u5f00\u542f\u670d\u52a1\uff0c\u4f46\u662f\u4ee5\u9632\u4e07\u4e00)\nnet start mysql(\u518d\u6253\u5f00mysql\u670d\u52a1)\n(\u8fd9\u91cc\u4e0d\u8981\u5acc\u9ebb\u70e6\uff0c\u5982\u679c\u4e0a\u4e00\u4e2amysql\u670d\u52a1\u6ca1\u5173\u95ed,\u6211\u4eec\u4f9d\u65e7\u662f\u65e0\u5bc6\u7801\u767b\u9646)\ncd C:\\web\\mysql-8.0.16\\bin\nmysql -u root -p\n(\u6b64\u5904\u4f1a\u663e\u793a\u8f93\u5165\u5bc6\u7801\uff0c\u76f4\u63a5\u56de\u8f66\u5c31\u597d\u4e86\uff0c\u7b2c\u56db\u6b65\u6211\u4eec\u5df2\u7ecf\u5c06\u4ed6\u7f6e\u4e3a\u7a7a\u4e86)\nALTER USER &#039;root&#039;@&#039;localhost&#039; IDENTIFIED BY &#039;\u65b0\u5bc6\u7801&#039;;\uff08\u66f4\u6539\u5bc6\u7801\uff09<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5 \uff081\uff09\u89e3\u538b-\u8fdb\u5165bin\u6587\u4ef6\u7684\u76ee\u5f55\uff08\u7ba1\u7406\u5458\uff09 \uff082\uff09\u521d\u59cb\u5316 mysqld &#8211;initialize \uff083\uff09 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[133],"tags":[58],"class_list":["post-605","post","type-post","status-publish","format-standard","hentry","category-dev-tools","tag-mysql"],"_links":{"self":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/605","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=605"}],"version-history":[{"count":1,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/605\/revisions"}],"predecessor-version":[{"id":2024,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=\/wp\/v2\/posts\/605\/revisions\/2024"}],"wp:attachment":[{"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=605"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=605"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ttwow.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=605"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}