{"id":1143,"date":"2014-10-05T08:17:59","date_gmt":"2014-10-05T00:17:59","guid":{"rendered":"http:\/\/www.menglanglang.cn\/?p=1143"},"modified":"2022-09-16T05:54:29","modified_gmt":"2022-09-15T21:54:29","slug":"%e5%9c%a8windows%e7%b3%bb%e7%bb%9f%e4%b8%ad%e5%ae%89%e8%a3%85mysql%e6%95%b0%e6%8d%ae%e5%ba%93","status":"publish","type":"post","link":"http:\/\/www.menglanglang.cn\/?p=1143","title":{"rendered":"\u5728Windows\u7cfb\u7edf\u4e2d\u5b89\u88c5MySQL\u6570\u636e\u5e93"},"content":{"rendered":"<p>MySQL \u662f\u4e00\u4e2a\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff0c\u7531\u745e\u5178 MySQL AB \u516c\u53f8\u5f00\u53d1\uff0c\u76ee\u524d\u5c5e\u4e8e Oracle \u516c\u53f8\u3002MySQL \u662f\u4e00\u79cd\u5173\u8054\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff0c\u5173\u8054\u6570\u636e\u5e93\u5c06\u6570\u636e\u4fdd\u5b58\u5728\u4e0d\u540c\u7684\u8868\u4e2d\uff0c\u800c\u4e0d\u662f\u5c06\u6240\u6709\u6570\u636e\u653e\u5728\u4e00\u4e2a\u5927\u4ed3\u5e93\u5185\uff0c\u8fd9\u6837\u5c31\u589e\u52a0\u4e86\u901f\u5ea6\u5e76\u63d0\u9ad8\u4e86\u7075\u6d3b\u6027\u3002MySQL \u6240\u4f7f\u7528\u7684 SQL \u8bed\u8a00\u662f\u7528\u4e8e\u8bbf\u95ee\u6570\u636e\u5e93\u7684\u6700\u5e38\u7528\u6807\u51c6\u5316\u8bed\u8a00\u3002MySQL \u8f6f\u4ef6\u91c7\u7528\u4e86\u53cc\u6388\u6743\u653f\u7b56\uff0c\u5b83\u5206\u4e3a\u793e\u533a\u7248\u548c\u5546\u4e1a\u7248\uff0c\u7531\u4e8e\u5176\u4f53\u79ef\u5c0f\u3001\u901f\u5ea6\u5feb\u3001\u603b\u4f53\u62e5\u6709\u6210\u672c\u4f4e\uff0c\u5c24\u5176\u662f\u5f00\u653e\u6e90\u7801\u8fd9\u4e00\u7279\u70b9\uff0c\u4e00\u822c\u4e2d\u5c0f\u578b\u7f51\u7ad9\u7684\u5f00\u53d1\u90fd\u9009\u62e9 MySQL \u4f5c\u4e3a\u7f51\u7ad9\u6570\u636e\u5e93\u3002\u7531\u4e8e\u5176\u793e\u533a\u7248\u7684\u6027\u80fd\u5353\u8d8a\uff0c\u642d\u914d PHP \u548c Apache \u53ef\u7ec4\u6210\u826f\u597d\u7684\u5f00\u53d1\u73af\u5883 LAMP\uff08Linux + Apache + MySQL + PHP\uff09 \u6216\u662f WAMP\uff08Windows + Apache + MySQL + PHP\uff09\u3002<\/p>\n<p>\u5728 Windows \u7cfb\u7edf\u4e2d\u5b89\u88c5 MySQL \u6570\u636e\u5e93\u4e0d\u662f\u5f88\u9ebb\u70e6\uff0c\u5982\u679c\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8fd8\u81ea\u5e26\u914d\u7f6e\u7684\u56fe\u5f62\u754c\u9762\uff0c\u90a3\u5c31\u66f4\u5bb9\u6613\u4e86\uff0c\u4e0d\u7528\u518d\u53bb\u624b\u52a8\u4fee\u6539\u914d\u7f6e\u6587\u4ef6\u3002\u4e0b\u9762\u5c31\u00a0mysql-5.0.22-win32 \u7684\u8be6\u7ec6\u5b89\u88c5\u6b65\u9aa4\u8d34\u56fe\u8bf4\u660e\u4e00\u4e0b\u3002<\/p>\n<p>\u81f3\u4e8e\u5b89\u88c5\u5305\uff0c\u53ef\u4ee5\u5728\u7f51\u4e0a\u4e0b\u8f7d\uff0c\u4f46\u6709\u65f6\u5019\u4e0b\u8f7d\u7684\u5b89\u88c5\u5305\u4e0d\u5e26\u914d\u7f6e\u56fe\u5f62\u754c\u9762\uff0c\u5f88\u662f\u607c\u706b\uff0c\u6240\u4ee5\u8fd9\u91cc\u8fd9\u4e2a\u7248\u672c\u4f9b\u5927\u5bb6\u4e0b\u8f7d\uff0c<a title=\"\u4e0b\u8f7dmysql-5.0.22\u5b89\u88c5\u5305\" href=\"http:\/\/pan.baidu.com\/s\/1kTiMn11\" target=\"_blank\" rel=\"noopener\">\u767e\u5ea6\u4e91\u7ba1\u5bb6\u4e0b\u8f7d<\/a>\u3002<\/p>\n<p>\u4e0b\u8f7d\u540e\u89e3\u538b\u7f29\uff0c\u76f4\u63a5\u53cc\u51fb Setup.exe\u00a0\u53ef\u6267\u884c\u6587\u4ef6\uff0c\u51fa\u73b0\u5982\u4e0b\u754c\u9762\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_01.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p><span style=\"line-height: normal;\">mysql \u5b89\u88c5\u5411\u5bfc\u542f\u52a8\uff0c\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_02.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p><span style=\"line-height: normal;\">\u4e0a\u9762\u662f\u9009\u62e9\u5b89\u88c5\u7c7b\u578b\u754c\u9762\uff0c\u6709\u201cTypical\uff08\u9ed8\u8ba4\uff09\u201d\u3001\u201cComplete\uff08\u5b8c\u5168\uff09\u201d\u3001\u201cCustom\uff08\u7528\u6237\u81ea\u5b9a\u4e49\uff09\u201d\u4e09\u4e2a\u9009\u9879\uff0c\u6211\u4eec\u9009\u62e9\u201cCustom\u201d\uff0c\u8fd9\u6837\u6709\u66f4\u591a\u7684\u81ea\u5b9a\u4e49\u9009\u9879\uff0c\u6bd4\u5982\u53ef\u4ee5\u9009\u62e9\u5b89\u88c5\u76ee\u5f55\uff0c\u5982\u679c\u9009\u62e9\u524d\u4e24\u8005\uff0c\u5b89\u88c5\u76ee\u5f55\u9ed8\u8ba4\u662fC:\\Program Files\\MYSQL\\\u4e0b\uff0c\u65e0\u6cd5\u4fee\u6539\u7684\u3002\u53e6\u5916\u9009\u62e9 Custom \u4e5f\u65b9\u4fbf\u719f\u6089\u5b89\u88c5\u7684\u6574\u4e2a\u8fc7\u7a0b\u3002<\/span><\/p>\n<p>\u9009\u62e9\u00a0Custom \u5e76\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_03.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p>\u4e0a\u56fe\u4e2d\uff0c\u5728\u201cDeveloper Components\uff08\u5f00\u53d1\u8005\u90e8\u5206\uff09\u201d\u4e0a\u5de6\u952e\u5355\u51fb\uff0c\u9009\u62e9\u201cThis feature, and all subfeatures, will be installed on local hard drive.\u201d\uff0c\u5373\u201c\u6b64\u90e8\u5206\uff0c\u53ca\u4e0b\u5c5e\u5b50\u90e8\u5206\u5185\u5bb9\uff0c\u5168\u90e8\u5b89\u88c5\u5728\u672c\u5730\u786c\u76d8\u4e0a\u201d\u3002\u5728\u4e0a\u9762\u7684\u201cMySQL Server\uff08mysql\u670d\u52a1\u5668\uff09\u201d\u3001\u201cClient Programs\uff08mysql\u5ba2\u6237\u7aef\u7a0b\u5e8f\uff09\u201d\u3001\u201cDocumentation\uff08\u6587\u6863\uff09\u201d\u4e5f\u5982\u6b64\u64cd\u4f5c\uff0c\u4ee5\u4fdd\u8bc1\u5b89\u88c5\u6240\u6709\u6587\u4ef6\u3002\u70b9\u9009\u201cChange...\u201d\uff0c\u624b\u52a8\u6307\u5b9a\u5b89\u88c5\u76ee\u5f55\u3002<\/p>\n<p>\u9ed8\u8ba4\u76ee\u5f55\u8fd8\u662f\u00a0C:\\Program Files\\MySQL\\MySQL Server 5.0\\\uff0c\u5728\u8fd9\u91cc\u6211\u6253\u7b97\u5b89\u88c5\u5230 D \u76d8\u6839\u76ee\u5f55\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_04.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p>\u6ce8\u610f\uff1a\u5b89\u88c5 mysql \u7684\u8def\u5f84\u4e2d\uff0c\u4e0d\u80fd\u542b\u6709\u4e2d\u6587\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_05.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p>\u5efa\u8bae\u4e0d\u8981\u653e\u5728\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u540c\u4e00\u5206\u533a\uff0c\u8fd9\u6837\u53ef\u4ee5\u9632\u6b62\u7cfb\u7edf\u5907\u4efd\u8fd8\u539f\u7684\u65f6\u5019\uff0c\u6570\u636e\u88ab\u6e05\u7a7a\u3002\u6309\u201cOK\u201d\u7ee7\u7eed\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_06.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p>\u5982\u4e0a\u56fe\u6240\u793a\uff0c\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_07.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p>\u4e0a\u56fe\u4e3a\u5b89\u88c5\u524d\u6700\u7ec8\u786e\u8ba4\u753b\u9762\uff0c\u786e\u8ba4\u4e00\u4e0b\u5148\u524d\u7684\u8bbe\u7f6e\uff0c\u5982\u679c\u6709\u8bef\uff0c\u6309\u201cBack\u201d\u8fd4\u56de\u91cd\u505a\u3002\u6309\u201cInstall\u201d\u5f00\u59cb\u5b89\u88c5\u3002\u65e0\u8bef\uff0c\u6309\u201cInstall\u201d\u7ee7\u7eed\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_08.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p>\u6b63\u5728\u5b89\u88c5\u4e2d\uff0c\u8bf7\u7a0d\u5019\u3002\u3002\u3002\u76f4\u5230\u51fa\u73b0\u4e0b\u9762\u7684\u754c\u9762\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_09.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p><span style=\"line-height: normal;\">\u4e0a\u56fe\u662f\u8be2\u95ee\u662f\u5426\u8981\u6ce8\u518c\u4e00\u4e2a mysql.com \u7684\u8d26\u53f7\uff0c\u6216\u662f\u4f7f\u7528\u5df2\u6709\u7684\u8d26\u53f7\u767b\u9646 mysql.com\uff0c\u4e00\u822c\u4e0d\u9700\u8981\u4e86\uff0c\u70b9\u9009\u201cSkip Sign-Up\u201d\uff0c\u6309\u201cNext\u201d\u7565\u8fc7\u6b64\u6b65\u9aa4\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_10.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p><span style=\"line-height: normal;\">\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u51fa\u73b0\u4e0a\u9762\u7684\u754c\u9762\u3002\u8fd9\u91cc\u6709\u4e00\u4e2a\u5f88\u597d\u7684\u529f\u80fd\uff0cmysql \u914d\u7f6e\u5411\u5bfc\uff0c\u4e0d\u7528\u50cf\u6709\u4e9b\u7248\u672c\u4e00\u6837\uff0c\u8fd8\u9700\u8981\u81ea\u5df1\u624b\u52a8\u914d\u7f6e my.ini \u4e86\uff0c\u5c06 \u201cConfigure the Mysql Server now\u201d\u524d\u9762\u7684\u52fe\u9009\u4e0a\uff0c\u70b9\u201cFinish\u201d\u7ed3\u675f\u8f6f\u4ef6\u7684\u5b89\u88c5\u5e76\u542f\u52a8 mysql \u914d\u7f6e\u5411\u5bfc\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_11.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p>mysql \u914d\u7f6e\u5411\u5bfc\u542f\u52a8\u754c\u9762\uff0c\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_12.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p><span style=\"line-height: normal;\">\u4e0a\u56fe\u662f\u9009\u62e9\u914d\u7f6e\u65b9\u5f0f\u754c\u9762\uff0c\u201cDetailed Configuration\uff08\u624b\u52a8\u7cbe\u786e\u914d\u7f6e\uff09\u201d\u3001\u201cStandard Configuration\uff08\u6807\u51c6\u914d\u7f6e\uff09\u201d\uff0c\u6211\u4eec\u9009\u62e9\u201cDetailed Configuration\u201d\uff0c\u65b9\u4fbf\u719f\u6089\u914d\u7f6e\u8fc7\u7a0b\u3002\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_13.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p>\u4e0a\u56fe\u662f\u9009\u62e9\u670d\u52a1\u5668\u7c7b\u578b\u754c\u9762\uff0c\u201cDeveloper Machine\uff08\u5f00\u53d1\u6d4b\u8bd5\u7c7b\uff0cmysql\u5360\u7528\u5f88\u5c11\u8d44\u6e90\uff09\u201d\u3001\u201cServer Machine\uff08\u670d\u52a1\u5668\u7c7b\u578b\uff0cmysql\u5360\u7528\u8f83\u591a\u8d44\u6e90\uff09\u201d\u3001\u201cDedicated MySQL Server Machine\uff08\u4e13\u95e8\u7684\u6570\u636e\u5e93\u670d\u52a1\u5668\uff0cmysql \u5360\u7528\u6240\u6709\u53ef\u7528\u8d44\u6e90\uff09\u201d\uff0c\u5927\u5bb6\u6839\u636e\u81ea\u5df1\u7684\u7c7b\u578b\u9009\u62e9\u4e86\uff0c\u4e00\u822c\u9009\u201cServer Machine\u201d\uff0c\u5360\u7528\u5185\u5b58\u4e0d\u5c11\u4e5f\u4e0d\u591a\uff0c\u53ef\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\uff0c\u9009\u62e9\u5176\u4ed6\u9009\u9879\u3002<\/p>\n<p>\u9009\u62e9\u201cServer Machine\u201d\uff0c\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_14.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p><span style=\"line-height: normal;\">\u4e0a\u56fe\u662f\u9009\u62e9 mysql \u6570\u636e\u5e93\u7684\u5927\u81f4\u7528\u9014\uff0c\u201cMultifunctional Database\uff08\u901a\u7528\u591a\u529f\u80fd\u578b\uff0c\u5c06\u628a\u6570\u636e\u5e93\u4f18\u5316\u6210\u5f88\u597d\u7684 innodb \u5b58\u50a8\u7c7b\u578b\u548c\u9ad8\u6548\u7387\u7684 myisam \u5b58\u50a8\u7c7b\u578b\uff09\u201d\u3001\u201cTransactional Database Only\uff08\u670d\u52a1\u5668\u7c7b\u578b\uff0c\u4e13\u6ce8\u4e8e\u4e8b\u52a1\u5904\u7406\uff0c\u6700\u597d\u7684\u4f18\u5316 innodb\uff0c\u4f46\u540c\u65f6\u4e5f\u652f\u6301 myisam\uff09\u201d\u3001\u201cNon-Transactional Database Only\uff08\u975e\u4e8b\u52a1\u5904\u7406\u578b\uff0c\u9002\u5408\u4e8e\u7b80\u5355\u7684\u5e94\u7528\uff0c\u4e3b\u8981\u505a\u4e00\u4e9b\u76d1\u63a7\u3001\u8bb0\u6570\u7528\uff0c\u53ea\u6709\u4e0d\u652f\u6301\u4e8b\u52a1\u7684myisam\u7c7b\u578b\u662f\u88ab\u652f\u6301\u7684\uff09\uff0c\u968f\u81ea\u5df1\u7684\u7528\u9014\u800c\u9009\u62e9\u4e86\uff0c\u8fd9\u91cc\u9009\u62e9\u201cTransactional Database Only\u201d\uff0c\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_15.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p><span style=\"line-height: normal;\">\u4e0a\u56fe\u662f\u5bf9 InnoDB Tablespace \u8fdb\u884c\u914d\u7f6e\uff0c\u5c31\u662f\u4e3a InnoDB \u6570\u636e\u5e93\u6587\u4ef6\u9009\u62e9\u4e00\u4e2a\u5b58\u50a8\u7a7a\u95f4\uff0c\u5982\u679c\u4fee\u6539\u4e86\uff0c\u8981\u8bb0\u4f4f\u4f4d\u7f6e\uff0c\u91cd\u88c5\u7684\u65f6\u5019\u8981\u9009\u62e9\u4e00\u6837\u7684\u5730\u65b9\uff0c\u5426\u5219\u53ef\u80fd\u4f1a\u9020\u6210\u6570\u636e\u5e93\u635f\u574f\uff0c\u5f53\u7136\uff0c\u5bf9\u6570\u636e\u5e93\u505a\u4e2a\u5907\u4efd\u5c31\u6ca1\u95ee\u9898\u4e86\uff0c\u8fd9\u91cc\u4e0d\u518d\u8be6\u8ff0\u3002\u8fd9\u91cc\u4e0d\u505a\u4fee\u6539\uff0c\u4f7f\u7528\u9ed8\u8ba4\u4f4d\u7f6e\uff0c\u76f4\u63a5\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_16.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p>\u4e0a\u56fe\u662f\u9009\u62e9\u60a8\u7684\u7f51\u7ad9\u7684\u4e00\u822cmysql\u8bbf\u95ee\u91cf\uff0c\u540c\u65f6\u8fde\u63a5\u7684\u6570\u76ee\uff0c\u201cDecision Support(DSS)\/OLAP\uff08\u6700\u592720\u4e2a\u8fde\u63a5\u5e76\u53d1\u6570\uff09\u201d\u3001\u201cOnline Transaction Processing(OLTP)\uff08\u6700\u5927500\u4e2a\u5e76\u53d1\u8fde\u63a5\u6570\uff09\u201d\u3001\u201cManual Setting\uff08\u624b\u52a8\u8bbe\u7f6e\uff0c\u81ea\u5b9a\u4e49\u6700\u5927\u5e76\u53d1\u8fde\u63a5\u6570\uff09\u201d\uff0c\u6211\u8fd9\u91cc\u9009\u201cOnline Transaction Processing(OLTP)\u201d\uff0c\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_17.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p><span style=\"line-height: normal;\">\u4e0a\u56fe\u4e3a\u662f\u5426\u542f\u7528TCP\/IP\u8fde\u63a5\uff0c\u8bbe\u5b9a\u7aef\u53e3\uff0c\u5982\u679c\u4e0d\u542f\u7528\uff0c\u5c31\u53ea\u80fd\u5728\u81ea\u5df1\u7684\u673a\u5668\u4e0a\u8bbf\u95ee mysql \u6570\u636e\u5e93\u4e86\uff0c\u8fd9\u91cc\u542f\u7528\uff0c\u628a\u524d\u9762\u7684\u52fe\u6253\u4e0a\uff0cPort Number\uff1a3306\uff0c\u9009\u62e9\u6570\u636e\u5e93\u76d1\u542c\u7684\u7aef\u53e3\uff0c\u4e00\u822c\u9ed8\u8ba4\u662f3306\uff0c\u5982\u679c\u6539\u6210\u5176\u4ed6\u7aef\u53e3\uff0c\u4ee5\u540e\u8fde\u63a5\u6570\u636e\u5e93\u7684\u65f6\u5019\u90fd\u8981\u8bb0\u4f4f\u4fee\u6539\u7684\u7aef\u53e3\uff0c\u5426\u5219\u4e0d\u80fd\u8fde\u63a5 mysql \u6570\u636e\u5e93\uff0c\u6bd4\u8f83\u9ebb\u70e6\uff0c\u8fd9\u91cc\u4e0d\u505a\u4fee\u6539\uff0c\u7528 mysq \u7684\u9ed8\u8ba4\u7aef\u53e3\uff1a3306\u3002\u5728\u8fd9\u4e2a\u9875\u9762\u4e0a\uff0c\u60a8\u8fd8\u53ef\u4ee5\u9009\u62e9\u201c\u542f\u7528\u6807\u51c6\u6a21\u5f0f\u201d\uff08Enable Strict Mode\uff09\uff0c\u8fd9\u6837MySQL\u5c31\u4e0d\u4f1a\u5141\u8bb8\u7ec6\u5c0f\u7684\u8bed\u6cd5\u9519\u8bef\u3002\u5982\u679c\u60a8\u8fd8\u662f\u4e2a\u65b0\u624b\uff0c\u6211\u5efa\u8bae\u60a8\u53d6\u6d88\u6807\u51c6\u6a21\u5f0f\u4ee5\u51cf\u5c11\u9ebb\u70e6\u3002\u4f46\u719f\u6089MySQL\u4ee5\u540e\uff0c\u5c3d\u91cf\u4f7f\u7528\u6807\u51c6\u6a21\u5f0f\uff0c\u56e0\u4e3a\u5b83\u53ef\u4ee5\u964d\u4f4e\u6709\u5bb3\u6570\u636e\u8fdb\u5165\u6570\u636e\u5e93\u7684\u53ef\u80fd\u6027\u3002\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_18.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p>\u4e0a\u56fe\u662f\u4e2d\uff0c\u7b2c\u4e00\u4e2a\u662f\u897f\u6587\u7f16\u7801\uff0c\u7b2c\u4e8c\u4e2a\u662f\u591a\u5b57\u8282\u7684\u901a\u7528utf8\u7f16\u7801\uff0c\u90fd\u4e0d\u662f\u6211\u4eec\u901a\u7528\u7684\u7f16\u7801\uff0c\u8fd9\u91cc\u9009\u62e9\u7b2c\u4e09\u4e2a\uff0c\u7136\u540e\u5728Character Set\u90a3\u91cc\u9009\u62e9\u6216\u586b\u5165\u201cgbk\u201d\uff0c\u5f53\u7136\u4e5f\u53ef\u4ee5\u7528\u201cgb2312\u201d\uff0c\u533a\u522b\u5c31\u662fgbk\u7684\u5b57\u5e93\u5bb9\u91cf\u5927\uff0c\u5305\u62ec\u4e86gb2312\u7684\u6240\u6709\u6c49\u5b57\uff0c\u5e76\u4e14\u52a0\u4e0a\u4e86\u7e41\u4f53\u5b57\u3001\u548c\u5176\u5b83\u4e71\u4e03\u516b\u7cdf\u7684\u5b57\u2014\u2014\u4f7f\u7528mysql\u7684\u65f6\u5019\uff0c\u5728\u6267\u884c\u6570\u636e\u64cd\u4f5c\u547d\u4ee4\u4e4b\u524d\u8fd0\u884c\u4e00\u6b21\u201cSET NAMES GBK;\u201d\uff08\u8fd0\u884c\u4e00\u6b21\u5c31\u884c\u4e86\uff0cGBK\u53ef\u4ee5\u66ff\u6362\u4e3a\u5176\u5b83\u503c\uff0c\u89c6\u8fd9\u91cc\u7684\u8bbe\u7f6e\u800c\u5b9a\uff09\uff0c\u5c31\u53ef\u4ee5\u6b63\u5e38\u7684\u4f7f\u7528\u6c49\u5b57\uff08\u6216\u5176\u5b83\u6587\u5b57\uff09\u4e86\uff0c\u5426\u5219\u4e0d\u80fd\u6b63\u5e38\u663e\u793a\u6c49\u5b57\u3002\u6309 \u201cNext\u201d\u7ee7\u7eed\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_19.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p>\u9009\u62e9\u662f\u5426\u5c06 mysql \u5b89\u88c5\u4e3a Windows \u670d\u52a1\uff0c\u8fd8\u53ef\u4ee5\u6307\u5b9a Service Name\uff08\u670d\u52a1\u6807\u8bc6\u540d\u79f0\uff09\uff0c\u662f\u5426\u5c06 mysql \u7684 bin \u76ee\u5f55\u52a0\u5165\u5230 Windows PATH\u3002\u52a0\u5165\u540e\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528 bin \u4e0b\u7684\u6587\u4ef6\uff0c\u800c\u4e0d\u7528\u6307\u51fa\u76ee\u5f55\u540d\uff0c\u6bd4\u5982\u8fde\u63a5\uff0c\u201cmysql.exe -u username -p password;\u201d\u5c31\u53ef\u4ee5\u4e86\uff0c\u4e0d\u7528\u6307\u51fa mysql.exe \u7684\u5b8c\u6574\u5730\u5740\u3002\u8fd9\u91cc\u5168\u90e8\u6253\u4e0a\u4e86\u52fe\uff0cService Name\u4e0d\u53d8\u3002\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_20.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p>\u8fd9\u4e00\u6b65\u8be2\u95ee\u662f\u5426\u8981\u4fee\u6539\u9ed8\u8ba4 root \u7528\u6237\uff08\u8d85\u7ea7\u7ba1\u7406\uff09\u7684\u5bc6\u7801\uff08\u9ed8\u8ba4\u4e3a\u7a7a\uff09\uff0c\u8fd9\u4e2a\u8d85\u7ea7\u7528\u6237\u975e\u5e38\u91cd\u8981\uff0c\u5bf9 mysql \u62e5\u6709\u5168\u90e8\u7684\u6743\u9650\uff0c\u8bf7\u8bbe\u7f6e\u597d\u5e76\u7262\u8bb0\u8d85\u7ea7\u7528\u6237\u7684\u5bc6\u7801\uff0c\u5982\u679c\u8981\u4fee\u6539\uff0c\u5c31\u5728\u201cNew root password\u201d\u540e\u586b\u5165\u65b0\u5bc6\u7801\uff08\u5982\u679c\u662f\u91cd\u88c5\uff0c\u5e76\u4e14\u4e4b\u524d\u5df2\u7ecf\u8bbe\u7f6e\u4e86\u5bc6\u7801\uff0c\u5728\u8fd9\u91cc\u66f4\u6539\u5bc6\u7801\u53ef\u80fd\u4f1a\u51fa\u9519\uff0c\u8bf7\u7559\u7a7a\uff0c\u5e76\u5c06\u201cModify Security Settings\u201d\u524d\u9762\u7684\u52fe\u53bb\u6389\uff0c\u5b89\u88c5\u914d\u7f6e\u5b8c\u6210\u540e\u53e6\u884c\u4fee\u6539\u5bc6\u7801\uff09\uff0c\u201cConfirm\uff08\u518d\u8f93\u4e00\u904d\uff09\u201d\u5185\u518d\u586b\u4e00\u6b21\uff0c\u9632\u6b62\u8f93\u9519\u3002 \u201cEnable root access from remote machines\uff08\u662f\u5426\u5141\u8bb8 root \u7528\u6237\u5728\u5176\u5b83\u7684\u673a\u5668\u4e0a\u767b\u9646\uff0c\u5982\u679c\u8981\u5b89\u5168\uff0c\u5c31\u4e0d\u8981\u52fe\u4e0a\uff0c\u5982\u679c\u8981\u65b9\u4fbf\uff0c\u5c31\u52fe\u4e0a\u5b83\uff09\u201d\u3002\u6700\u540e\u201cCreate An Anonymous Account\uff08\u65b0\u5efa\u4e00\u4e2a\u533f\u540d\u7528\u6237\uff0c\u533f\u540d\u7528\u6237\u53ef\u4ee5\u8fde\u63a5\u6570\u636e\u5e93\uff0c\u4e0d\u80fd\u64cd\u4f5c\u6570\u636e\uff0c\u5305\u62ec\u67e5\u8be2\uff09\u201d\uff0c\u4e00\u822c\u5c31\u4e0d\u7528\u52fe\u4e86\uff0c\u8bbe\u7f6e\u5b8c\u6bd5\uff0c\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_21.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p><span style=\"line-height: normal;\">\u786e\u8ba4\u8bbe\u7f6e\u65e0\u8bef\uff0c\u5982\u679c\u6709\u8bef\uff0c\u6309\u201cBack\u201d\u8fd4\u56de\u68c0\u67e5\u3002\u6309\u201cExecute\u201d\u4f7f\u8bbe\u7f6e\u751f\u6548\u3002<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter\" title=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" src=\"http:\/\/www.menglanglang.cn\/pic\/2014\/10\/mysql_22.png\" alt=\"Windows\u4e2dMySQL\u5b89\u88c5\u8be6\u7ec6\u6b65\u9aa4\" width=\"514\" height=\"392\" \/><\/p>\n<p>\u8bbe\u7f6e\u5b8c\u6bd5\uff0c\u6309\u201cFinish\u201d\u7ed3\u675f mysql \u7684\u5b89\u88c5\u4e0e\u914d\u7f6e\u3002<\/p>\n<p>\u8fd9\u91cc\u6709\u4e00\u4e2a\u6bd4\u8f83\u5e38\u89c1\u7684\u9519\u8bef\uff0c\u5c31\u662f\u4e0d\u80fd\u201cStart service\u201d\uff0c\u4e00\u822c\u51fa\u73b0\u5728\u4ee5\u524d\u6709\u5b89\u88c5mysql\u7684\u670d\u52a1\u5668\u4e0a\uff0c<\/p>\n<p>\u89e3\u51b3\u7684\u529e\u6cd5\uff1a<\/p>\n<p>\u5148\u4fdd\u8bc1\u4ee5\u524d\u5b89\u88c5\u7684mysql\u670d\u52a1\u5668\u5f7b\u5e95\u5378\u8f7d\u6389\u4e86\uff1b<span style=\"text-indent: 2em;\">\u4e0d\u884c\u7684\u8bdd\uff0c\u68c0\u67e5\u662f\u5426\u6309\u4e0a\u9762\u4e00\u6b65\u6240\u8bf4\uff0c\u4e4b\u524d\u7684\u5bc6\u7801\u662f\u5426\u6709\u4fee\u6539\uff0c\u7167\u4e0a\u9762\u7684\u64cd\u4f5c\uff1b\u5982\u679c\u4f9d\u7136\u4e0d\u884c\uff0c\u5c06mysql\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684data\u6587\u4ef6\u5939\u5907\u4efd\uff0c\u7136\u540e\u5220\u9664\uff0c\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5c06\u5b89\u88c5\u751f\u6210\u7684 data\u6587\u4ef6\u5939\u5220\u9664\uff0c\u5907\u4efd\u7684data\u6587\u4ef6\u5939\u79fb\u56de\u6765\uff0c\u518d\u91cd\u542fmysql\u670d\u52a1\u5c31\u53ef\u4ee5\u4e86\uff0c\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u53ef\u80fd\u9700\u8981\u5c06\u6570\u636e\u5e93\u68c0\u67e5\u4e00\u4e0b\uff0c\u7136\u540e\u4fee\u590d\u4e00\u6b21\uff0c\u9632\u6b62\u6570\u636e\u51fa\u9519\u3002<\/span><\/p>\n<p>MySQL\u5b89\u88c5\u662f\u51fa\u73b0could not start the service mysql error:0 \u63d0\u793a\u9519\u8bef\uff0c\u89e3\u51b3\u65b9\u6cd5\uff1a \u00a0\u9996 \u5148\uff0c\u5728\u7ba1\u7406\u5de5\u5177-&gt;\u670d\u52a1\u91cc\u9762\u5c06MySQL\u7684\u670d\u52a1\u7ed9\u505c\u6b62\uff0c\u7136\u540e\u6253\u5f00cmd \u8fdb\u5165\u4f60\u7684MySQL bin\u76ee\u5f55\u4e0b\uff0c\u4f8b\u5982 C:\\Program Files\\MySQL\\MySQL Server 5.0\\bin \u7136\u540e\u4f7f\u7528\u5982\u4e0b\u547d\u4ee4mysqld-nt -remove \u7136\u540e\u5c31\u4f1a\u663e\u793a......success! \u597d\u4e86\u4e0b\u9762\u8fdb\u5165\u6dfb\u52a0\u5220\u9664\u7a0b\u5e8f\uff0c\u627e\u5230MySQL\u9009\u62e9\u5378\u8f7d\uff0c\u8bb0\u5f97\u9009\u62e9remove\u3002\u6700\u540e\u5c06MySQL\u76ee\u5f55\u5220\u9664\uff0c\u8fd8\u6709\u6570\u636e\u5e93\u7684\u76ee\u5f55\u4e5f\u5220\u9664\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MySQL \u662f\u4e00\u4e2a\u5173\u7cfb\u578b\u6570\u636e\u5e93\u7ba1\u7406\u7cfb\u7edf\uff0c\u7531\u745e\u5178 MySQL AB \u516c\u53f8\u5f00\u53d1\uff0c\u76ee\u524d\u5c5e\u4e8e Oracle \u516c\u53f8\u3002My [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[186,605,877,214],"class_list":["post-1143","post","type-post","status-publish","format-standard","hentry","category-development-tools","tag-mysql","tag-windows","tag-877","tag-214"],"_links":{"self":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/1143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1143"}],"version-history":[{"count":1,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/1143\/revisions"}],"predecessor-version":[{"id":5211,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=\/wp\/v2\/posts\/1143\/revisions\/5211"}],"wp:attachment":[{"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1143"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.menglanglang.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}