{"id":183,"date":"2015-09-22T13:39:15","date_gmt":"2015-09-22T05:39:15","guid":{"rendered":"http:\/\/yyshell.com\/?p=183"},"modified":"2015-09-22T13:39:58","modified_gmt":"2015-09-22T05:39:58","slug":"windows%e4%b8%8b%e7%bb%bf%e8%89%b2%e7%89%88mysql%e5%88%b6%e4%bd%9c%e8%bf%87%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/yyshell.com\/?p=183","title":{"rendered":"Windows\u4e0b\u7eff\u8272\u7248MySQL\u5236\u4f5c\u8fc7\u7a0b"},"content":{"rendered":"<p>MySQL\u6570\u636e\u5e93\u4f5c\u4e3a\u4e16\u754c\u4e0a\u4f7f\u7528\u6700\u591a\u7684\u6570\u636e\u5e93\u4e4b\u4e00\uff0c\u7528\u7684\u4eba\u975e\u5e38\u591a\uff0c\u76ee\u524d\u5b98\u65b9\u63d0\u4f9bmsi\u5b89\u88c5\u7248\u8fd8\u6709zip\u538b\u7f29\u7248\u4e24\u79cd\u5b89\u88c5\u5a92\u4ecb\u3002\u901a\u5e38\u60c5\u51b5\u4e0b\uff0c\u6211\u4eec\u63a8\u8350\u4f7f\u7528msi\u5b89\u88c5\u7248\uff0c\u6709\u5b8c\u6574\u7684\u5b89\u88c5\u914d\u7f6e\u5411\u5bfc\u3002\u4f46\u6709\u65f6\u5019\uff0c\u6211\u6211\u4eec\u901a\u8fc7\u5bf9\u89e3\u538b\u7248\u7a0b\u5e8f\u914d\u7f6e\uff0c\u53ef\u4ee5\u66f4\u597d\u7684\u4e86\u89e3MySQL\u7684\u76f8\u5173\u914d\u7f6e\u3002<\/p>\n<p>MySQL\u5b98\u65b9<a href=\"https:\/\/dev.mysql.com\/downloads\/mysql\/\" target=\"_blank\">\u4e0b\u8f7d\u5730\u5740<\/a>\uff0c\u53ef\u4ee5\u770b\u5230\u4e0b\u8f7d\u9875\u9762\u5206\u4e3a\u4e86\u4e24\u79cd\u4e0b\u8f7d\u7c7b\u578b\u3002\u6211\u4eec\u6b64\u5904\u91c7\u7528<b>Windows (x86, 64-bit), ZIP Archive<\/b> \uff0c\u8fd9\u4e2a\u7248\u672c\u4e0b\u8f7d\u3002\u89e3\u538b\u540e\uff0c\u53ef\u4ee5\u770b\u5230\u5982\u4e0b\u6587\u4ef6\u5217\u8868\uff1a<\/p>\n<blockquote><p>bin\\<br \/>\ndata\\<br \/>\ndocs\\<br \/>\ninclude\\<br \/>\nlib\\<br \/>\nmysql-test\\<br \/>\nscripts\\<br \/>\nshare\\<br \/>\nsql-bench\\<br \/>\nCOPYING<br \/>\nmy-default.ini<br \/>\nREADME<\/p><\/blockquote>\n<p>\u5176\u4e2d\uff0c\u5e26\\\u7684\u4e3a\u76ee\u5f55\uff0c\u89e3\u538b\u540e\u76ee\u5f55\u76f8\u5f53\u5e9e\u5927\uff0c\u53ea\u9700\u8981\u4fdd\u7559bin data share 3\u4e2a\u6587\u4ef6\u5939\uff0c\u4ee5\u53ca\u914d\u7f6e\u6587\u4ef6my-default.ini\u5373\u53ef\u3002\u590d\u5236\u4e00\u4efd\u6837\u677f\u914d\u7f6e\u6587\u4ef6\uff0c\u5e76\u6539\u540d\u6210my.ini\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u4e0b\u914d\u7f6e\u3002\u4e0b\u9762\u662f\u6211\u4eec\u914d\u7f6e\u6587\u4ef6\uff0c\u6bd4\u8f83\u7b80\u5355\uff0c\u9700\u8981\u7684\u8bdd\u53ef\u4ee5\u5b9a\u5236\u3002<\/p>\n<pre class=\"lang:default decode:true \">[client]\r\nno-beep\r\nport=3306\r\n\r\n[mysql]\r\ndefault-character-set=utf8\r\n\r\n[mysqld]\r\nbasedir = c:\/mysql\r\ndatadir = c:\/mysql\/data\r\ncharacter-set-server=utf8\r\ndefault-storage-engine=INNODB\r\nport = 3306\r\nsql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES<\/pre>\n<p>\u63a5\u4e0b\u6765\u9700\u8981\u505a\u5982\u4e0b\u4e8b\u60c5\uff1a<\/p>\n<ol>\n<li>\u6dfb\u52a0mysql\u7684bin\u6587\u4ef6\u5939\u5230\u7cfb\u7edf\u7684path\u7684\u73af\u5883\u53d8\u91cf\uff0c\u8fd9\u6837\u5728cmd\u7a97\u53e3\u4e2d\u5c31\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165\u5e38\u89c1\u7684\u4e00\u4e9bmysql\u547d\u4ee4\u4e86\u3002<\/li>\n<li>\u6dfb\u52a0mysql\u5230\u7cfb\u7edf\u670d\u52a1\uff0c\u8fd9\u6837\u53ef\u4ee5\u7701\u53bb\u6bcf\u6b21\u624b\u52a8\u542f\u52a8\u4e86\u3002\n<pre class=\"lang:default decode:true \">C:\\&gt; \"C:\\mysql\\bin\\mysqld\" --install MySQL --defaults-file=C:\\mysql\\my.ini<\/pre>\n<p>\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0cmysqld\u7684\u547d\u4ee4\u6dfb\u52a0\u7cfb\u7edf\u670d\u52a1\u65f6\uff0c\u5fc5\u987b\u4f7f\u7528\u5168\u8def\u5f84\uff0c\u76f4\u63a5\u7528mysqld\u6dfb\u52a0\u7684\u8bdd\uff0c\u53ef\u80fd\u5bfc\u81f4\u8c03\u7528\u7a0b\u5e8f\u7684\u8def\u5f84\u4e0d\u5bf9\uff0c\u5bfc\u81f4\u7a0b\u5e8f\u65e0\u6cd5\u542f\u52a8\u3002<\/li>\n<li>\u8bbe\u7f6e\u4e0b\u9ed8\u8ba4\u7684root\u7528\u6237\u7684\u5bc6\u7801\uff1a\n<pre class=\"lang:default decode:true \">mysqladmin -u root password NEWPASSWORD<\/pre>\n<p>\u5927\u5199\u7684NEWPASSWORD\u4e3a\u4f60\u8981\u8bbe\u5b9a\u7684\u65b0\u5bc6\u7801\uff0c\u522b\u771f\u7684\u7528NEWPASSWORD\u4f5c\u4e3a\u65b0\u5bc6\u7801\u4e86\u3002<\/li>\n<\/ol>\n<p>\u81ea\u6b64\uff0c\u4f60\u53ea\u9700\u6dfb\u52a0mysql\u4e2d\u7684\u5176\u4ed6\u7528\u6237\uff0c\u521b\u5efa\u76f8\u5e94\u7684\u6570\u636e\u5e93\u5c31\u53ef\u4ee5\u4f7f\u7528\u4e86\uff0c\u4e0d\u63a8\u8350\u76f4\u63a5\u4f7f\u7528root\u7528\u6237\u8fde\u63a5\u6570\u636e\u5e93\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL\u6570\u636e\u5e93\u4f5c\u4e3a\u4e16\u754c\u4e0a\u4f7f\u7528\u6700\u591a\u7684\u6570\u636e\u5e93\u4e4b\u4e00\uff0c\u7528\u7684\u4eba\u975e\u5e38\u591a\uff0c\u76ee\u524d\u5b98\u65b9\u63d0\u4f9bmsi<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-183","post","type-post","status-publish","format-standard","hentry","category-software"],"_links":{"self":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=183"}],"version-history":[{"count":2,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions"}],"predecessor-version":[{"id":185,"href":"https:\/\/yyshell.com\/index.php?rest_route=\/wp\/v2\/posts\/183\/revisions\/185"}],"wp:attachment":[{"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yyshell.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}