{"id":10,"date":"2010-04-24T22:59:42","date_gmt":"2010-04-24T22:59:42","guid":{"rendered":"http:\/\/blog.yyhcw.com\/?p=10"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T07:54:17","slug":"mysql","status":"publish","type":"post","link":"http:\/\/blog.yyhcw.com\/post\/10.html","title":{"rendered":"mysql5.1\u5b89\u88c5\u56fe\u89e3"},"content":{"rendered":"<p>\u3000\u3000\u6700\u8fd1\u5b89\u88c5MYSQL\u65f6\u8001\u662f\u51fa\u73b0\u201cmysql-Could not start the service MySQL. Error:0\u201d\u7684\u9519\u8bef\uff0c\u5f88\u662f\u4ee4\u4eba\u90c1\u95f7\uff0c\u5728\u7f51\u4e0a\u627e\u904d\u4e86\u5927\u591a\u8bb2\u89e3\u7684\u57fa\u672c\u90fd\u662f\u5220\u9664\u4e86\u7136\u540e\u91cd\u65b0\u5b89\u88c5\u624d\u53ef\u4ee5\uff01\u786e\u5b9e\uff0c\u6211\u6ca1\u6709\u627e\u5230\u66f4\u597d\u7684\u529e\u6cd5\uff0c\u4e5f\u53ea\u6709\u91cd\u65b0\u5b89\u88c5\u3002<\/p>\n<p>\u3000\u3000\u3000\u53ef\u662f\u6211\u53cd\u590d\u5b89\u88c5\u5378\u8f7d\u91cd\u542f\u673a\u5668\u53ef\u662f\u6700\u7ec8\u8fd8\u662f\u63d0\u793a\u3000mysql-Could not start the service MySql\u9519\u8bef\uff01\u5148\u8bf4\u4e0b\u6211\u65f6\u600e\u4e48\u5b89\u88c5\u7684\uff1a\u4eca\u5929\u521a\u88c5\u7684\u7cfb\u7edf\uff0c\u4e4b\u540e\u5c31\u76f4\u63a5\u88c5mysql(\u4e4b\u524d\u5b89\u88c5\u8fc7mysql\uff0c\u5e76\u4e14\u662f\u5728D\u76d8\u4e2d\u539f\u6765\u7684\u4e1c\u897f\u90fd\u6ca1\u6709\u5220\u9664)\u4e00\u76f4\u63d0\u793a\u9519\u8bef\uff0c\u65e0\u5948\u4e2d\u540c\u65f6\u4e5f\u90c1\u95f7\u3002<\/p>\n<p>\u3000\u3000\u6700\u540e\u51b3\u5b9a\u5c06mysql\u5378\u8f7d\u518d\u91cd\u65b0\u5b89\u88c5\u4e0b\uff1a<\/p>\n<p>\u3000\u3000\uff11\uff09\u5c06mysql\u5f7b\u5e95\u5378\u8f7d\uff0c\u4f7f\u7528\u7684\u662f\u6dfb\u52a0\uff0f\u5220\u9664\u7a0b\u5e8f<br \/>\u3000\u3000\uff12\uff09\u8fdb\u5165\u6ce8\u518c\u8868\uff1aregedit \u641c\u7d22\u201cmysql\u201d\u5c06\u6240\u6709mysql\u5220\u9664<br \/>\u3000\u3000\uff13\uff09\u4f7f\u7528\uff13\uff16\uff10\u8fdb\u884c\u5783\u573e\u5220\u9664\u6e05\u9664\u7cfb\u7edf\u5783\u573e\u5e76\u4e14\u91cd\u542f\u673a\u5668<br \/>\u3000\u3000\uff14\uff09\u628a\u4e4b\u524d\u7684mysql\u76ee\u5f55\u8fdb\u884c\u5168\u90e8\u5220\u9664\u5904\u7406\u4f46\u662f\u9664\u4e86\u6570\u636e\u5e93(\u6211\u662f\u5c06\u6570\u636e\u5e93\u6539\u540d\u5c06\u5176\u5b83\u5168\u90e8\u5220\u9664)<\/p>\n<p>\u3000\u3000\u60f3\u4e0b\u597d\u50cf\u8be5\u505a\u7684\u4e5f\u90fd\u505a\u4e86\uff0c\u5f00\u59cb\u6700\u540e\u4e00\u6b21\u52aa\u529b\u5b89\u88c5mysql \u6211\u8fd9\u91cc\u5c06<a target=\"_blank\" href=\"\/post\/10.html\"><strong>mysql5.1\u5b89\u88c5\u56fe\u89e3<\/strong><\/a>\u8fc7\u7a0b\u8be6\u7ec6\u8bb0\u5f55\u4e0b\u6765\u63d0\u4f9b\u7ed9\u6709\u9700\u8981\u7684\u670b\u53cb(\u6211\u7684\u662fmysql5.1\u7248\u672c)<\/p>\n<p><strong>\u4e00\u3001MySQL5.1\u5b89\u88c5<\/strong><br \/>\u6253\u5f00\u4e0b\u8f7d\u7684\u5b89\u88c5\u6587\u4ef6\uff0c\u51fa\u73b0\u5982\u4e0b\u754c\u9762\uff1a<\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/1.jpg\" \/><\/p>\n<p style=\"text-align:left;\">mysql\u5b89\u88c5\u5411\u5bfc\u542f\u52a8\uff0c\u70b9\u51fb\u201cnext\u201d\u7ee7\u7eed<\/p>\n<p style=\"text-align:left;\"> <img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241525314813.jpg\" \/><\/p>\n<p style=\"text-align:left;\"> \u9009\u62e9\u5b89\u88c5\u7c7b\u578b\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\u6709\u66f4\u591a\u7684\u9009\u9879\uff0c\u4e5f\u65b9\u4fbf\u719f\u6089\u5b89\u88c5\u8fc7\u7a0b\u3002<\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241525561441.jpg\" \/><\/p>\n<p>\u5728\u201cMySQL Server\uff08MySQL\u670d\u52a1\u5668\uff09\u201d\u4e0a\u5de6\u952e\u5355\u51fb\uff0c\u9009\u62e9\u201cThis feature, and all subfeatures, will be<br \/>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\u70b9\u9009\u201cChange...\u201d\uff0c\u624b\u52a8\u6307\u5b9a\u5b89\u88c5\u76ee\u5f55\u3002<\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241527454885.jpg\" \/><\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241530045445.jpg\" \/><\/p>\n<p>\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<\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241531207101.jpg\" \/><\/p>\n<p>\u6b63\u5728\u5b89\u88c5\u4e2d\uff0c\u8bf7\u7a0d\u5019\uff0c\u76f4\u5230\u51fa\u73b0\u4e0b\u9762\u7684\u754c\u9762\u3002<\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241531381033.jpg\" \/><\/p>\n<p>\u70b9\u51fb\u201cnext\u201d\u7ee7\u7eed\uff0c\u51fa\u73b0\u5982\u4e0b\u754c\u9762\u3002<\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241531526741.jpg\" \/><\/p>\n<p> \u73b0\u5728mysql\u8f6f\u4ef6\u5df2\u7ecf\u5b89\u88c5\u5b8c\u6210\u4e86\uff0c\u51fa\u73b0\u4e0a\u9762\u7684\u754c\u9762\uff0c\u8fd9\u91cc\u6709\u4e00\u4e2a\u5f88\u597d\u7684\u529f\u80fd\uff0cmysql \u914d\u7f6e\u5411\u5bfc\uff0c\u4e0d\u7528\u5411\u4ee5\u524d\u4e00\u6837\uff0c<br \/>\u81ea\u5df1\u624b\u52a8\u4e71\u4e03\u516b\u7cdf\u7684\u914d\u7f6emy.ini \u4e86\uff0c\u5c06\u201cConfigure the Mysql Server now\u201d\u524d\u9762\u7684\u52fe\u6253\u4e0a\uff0c\u70b9\u201cFinish\u201d\u7ed3\u675f<br \/>\u8f6f\u4ef6\u7684\u5b89\u88c5\u5e76\u542f\u52a8mysql\u914d\u7f6e\u5411\u5bfc\u3002<\/p>\n<p><strong><span style=\"font-size:18px;font-family:\u5b8b\u4f53;\">\u4e8c\u3001\u914d\u7f6eMySQL Server<\/span><\/strong><\/p>\n<p>\u70b9\u51fb\u201cFinsh\u201d\uff0c\u51fa\u73b0\u5982\u4e0b\u754c\u9762\uff0cMySQL Server\u914d\u7f6e\u5411\u5bfc\u542f\u52a8\u3002<\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241537502126.jpg\" \/><\/p>\n<p> \u70b9\u51fb\u201cnext\u201d\u51fa\u73b0\u5982\u4e0b\u754c\u9762<\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241538047253.jpg\" \/><\/p>\n<p> \u9009\u62e9\u914d\u7f6e\u65b9\u5f0f\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<\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241538130536.jpg\" \/><\/p>\n<p> \u9009\u62e9\u670d\u52a1\u5668\u7c7b\u578b\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\u4e0d\u4f1a\u592a\u5c11\uff0c\u4e5f\u4e0d\u4f1a\u5360\u6ee1\u3002<\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241538318644.jpg\" \/><\/p>\n<p> \u9009\u62e9mysql\u6570\u636e\u5e93\u7684\u5927\u81f4\u7528\u9014\uff0c\u201cMultifunctional Database\uff08\u901a\u7528\u591a\u529f\u80fd\u578b\uff0c\u597d\uff09\u201d\u3001\u201cTransactional Database On<wbr>ly\uff08\u670d\u52a1\u5668\u7c7b\u578b\uff0c\u4e13\u6ce8\u4e8e\u4e8b\u52a1\u5904\u7406\uff0c\u4e00\u822c\uff09\u201d\u3001\u201cNon-Transactional Database On<wbr>ly\uff08\u975e\u4e8b\u52a1\u5904\u7406\u578b\uff0c\u8f83\u7b80\u5355\uff0c\u4e3b\u8981\u505a\u4e00\u4e9b\u76d1\u63a7\u3001\u8bb0\u6570\u7528\uff0c\u5bf9MyISAM\u6570\u636e\u7c7b\u578b\u7684\u652f\u6301\u4ec5\u9650\u4e8enon-transactional\uff09\uff0c\u968f\u81ea\u5df1\u7684\u7528\u9014\u800c\u9009\u62e9\u4e86\uff0c\u6211\u8fd9\u91cc\u9009\u62e9\u201cTransactional Database On<wbr>ly\u201d\uff0c\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/wbr><\/wbr><\/wbr><\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241538447456.jpg\" \/><\/p>\n<p> \u5bf9InnoDB Tablespace\u8fdb\u884c\u914d\u7f6e\uff0c\u5c31\u662f\u4e3aInnoDB \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\u8be6\u8ff0\u3002\u6211\u8fd9\u91cc\u6ca1\u6709\u4fee\u6539\uff0c\u4f7f\u7528\u9ed8\u8ba4\u4f4d\u7f6e\uff0c\u76f4\u63a5\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241539146736.jpg\" \/><\/p>\n<p> \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\uff0820\u4e2a\u5de6\u53f3\uff09\u201d\u3001\u201cOn<wbr>line Transaction Processing(OLTP)\uff08500\u4e2a\u5de6\u53f3\uff09\u201d\u3001\u201cManual Setting\uff08\u624b\u52a8\u8bbe\u7f6e\uff0c\u81ea\u5df1\u8f93\u4e00\u4e2a\u6570\uff09\u201d\uff0c\u6211\u8fd9\u91cc\u9009\u201cOn<wbr>line Transaction Processing(OLTP)\u201d\uff0c\u81ea\u5df1\u7684\u670d\u52a1\u5668\uff0c\u5e94\u8be5\u591f\u7528\u4e86\uff0c\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/wbr><\/wbr><\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241539254412.jpg\" \/><\/p>\n<p> \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\u95eemysql \u6570\u636e\u5e93\u4e86\uff0c\u6211\u8fd9\u91cc\u542f\u7528\uff0c\u628a\u524d\u9762\u7684\u52fe\u6253\u4e0a\uff0cPort Number\uff1a3306\uff0c\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\u8fd8\u6709\u4e00\u4e2a\u5173\u4e8e\u9632\u706b\u5899\u7684\u8bbe\u7f6e\u201cAdd firewall exception \u2026\u2026\u201d\u9700\u8981\u9009\u4e2d\uff0c\u5c06MYSQL\u670d\u52a1\u7684\u76d1\u542c\u7aef\u53e3\u52a0\u4e3awindows\u9632\u706b\u5899\u4f8b\u5916\uff0c\u907f\u514d\u9632\u706b\u5899\u963b\u65ad\u3002\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241539405175.jpg\" \/><\/p>\n<p> <span style=\"color:#ff0000\"><strong>\u6ce8\u610f<\/strong><\/span>\uff1a\u5982\u679c\u8981\u7528\u539f\u6765\u6570\u636e\u5e93\u7684\u6570\u636e\uff0c\u6700\u597d\u80fd\u786e\u5b9a\u539f\u6765\u6570\u636e\u5e93\u7528\u7684\u662f\u4ec0\u4e48\u7f16\u7801\uff0c\u5982\u679c\u8fd9\u91cc\u8bbe\u7f6e\u7684\u7f16\u7801\u548c\u539f\u6765\u6570\u636e\u5e93\u6570\u636e\u7684\u7f16\u7801\u4e0d\u4e00\u81f4\uff0c\u5728\u4f7f\u7528\u7684\u65f6\u5019\u53ef\u80fd\u4f1a\u51fa\u73b0\u4e71\u7801\u3002<\/p>\n<p style=\"text-indent:2em;text-align:left;\">\u8fd9\u4e2a\u6bd4\u8f83\u91cd\u8981\uff0c\u5c31\u662f\u5bf9mysql\u9ed8\u8ba4\u6570\u636e\u5e93\u8bed\u8a00\u7f16\u7801\u8fdb\u884c\u8bbe\u7f6e\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 decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241539504812.jpg\" \/><\/p>\n<p> \u9009\u62e9\u662f\u5426\u5c06mysql \u5b89\u88c5\u4e3awindows\u670d\u52a1\uff0c\u8fd8\u53ef\u4ee5\u6307\u5b9aService Name\uff08\u670d\u52a1\u6807\u8bc6\u540d\u79f0\uff09\uff0c\u662f\u5426\u5c06mysql\u7684bin\u76ee\u5f55\u52a0\u5165\u5230Windows PATH\uff08\u52a0\u5165\u540e\uff0c\u5c31\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528bin\u4e0b\u7684\u6587\u4ef6\uff0c\u800c\u4e0d\u7528\u6307\u51fa\u76ee\u5f55\u540d\uff0c\u6bd4\u5982\u8fde\u63a5\uff0c\u201cmysql.exe -uusername -ppassword;\u201d\u5c31\u53ef\u4ee5\u4e86\uff0c\u4e0d\u7528\u6307\u51famysql.exe\u7684\u5b8c\u6574\u5730\u5740\uff0c\u5f88\u65b9\u4fbf\uff09\uff0c\u6211\u8fd9\u91cc\u5168\u90e8\u6253\u4e0a\u4e86\u52fe\uff0cService Name\u4e0d\u53d8\u3002\u6309\u201cNext\u201d\u7ee7\u7eed\u3002<\/p>\n<p><img decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241540016073.jpg\" \/><\/p>\n<p> &nbsp; \u8fd9\u4e00\u6b65\u8be2\u95ee\u662f\u5426\u8981\u4fee\u6539\u9ed8\u8ba4root \u7528\u6237\uff08\u8d85\u7ea7\u7ba1\u7406\uff09\u7684\u5bc6\u7801\uff08\u9ed8\u8ba4\u4e3a\u7a7a\uff09\uff0c\u201cNew root password\u201d\u5982\u679c\u8981\u4fee\u6539\uff0c\u5c31\u5728\u6b64\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 remotemachines\uff08\u662f\u5426\u5141\u8bb8root \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 decoding=\"async\" onload=\"ResizeImage(this,520)\" src=\"\/wp-content\/uploads\/2010\/4\/201004241540123640.jpg\" \/><\/p>\n<p> \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<\/p>\n<p>\u8bbe\u7f6e\u5b8c\u6bd5\uff0c\u6309\u201cFinish\u201d\u7ed3\u675fmysql\u7684\u5b89\u88c5\u4e0e\u914d\u7f6e\u2014\u2014\u8fd9\u91cc\u6709\u4e00\u4e2a\u6bd4\u8f83\u5e38\u89c1\u7684\u9519\u8bef(\u8fd8\u662f\u6211\u5f00\u5934\u8bf4\u7684\u6211\u9047\u89c1\u7684\u90a3\u4e2a\u9519\u8bef\uff01)\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\u89e3\u51b3\u7684\u529e\u6cd5\uff0c\u5148\u4fdd\u8bc1\u4ee5\u524d\u5b89\u88c5\u7684mysql \u670d\u52a1\u5668\u5f7b\u5e95\u5378\u8f7d\u6389\u4e86\uff1b\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\u7684da<wbr>ta\u6587\u4ef6\u5939\u5907\u4efd\uff0c\u7136\u540e\u5220\u9664\uff0c\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5c06\u5b89\u88c5\u751f\u6210\u7684da<wbr>ta\u6587\u4ef6\u5939\u5220\u9664\uff0c\u5907\u4efd\u7684da<wbr>ta\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<\/wbr><\/wbr><\/wbr><\/p>\n<p style=\"text-align:left;\"><strong>\u4e09\u3001\u8bf4\u660e<\/strong><\/p>\n<p style=\"text-align:left;\"> &nbsp; &nbsp; &nbsp; &nbsp;\u672c\u6587\u6240\u6d89\u53ca\u5185\u5bb9\u5747\u53ef\u4ee5\u5728MySQL\u53c2\u8003\u624b\u518c\u7b2c\u4e8c\u7ae0\u201c<a target=\"_blank\" href=\"\/post\/10.html\">\u5b89\u88c5MySQL<\/a>\u201d\u4e2d\u627e\u5230\u3002MySQL\u53c2\u8003\u624b\u518c\u5730\u5740<\/p>\n<p style=\"text-indent:2em;text-align:left;\"><a target=\"_blank\" href=\"http:\/\/dev.mysql.com\/doc\/refman\/5.1\/zh\/index.html\"><span style=\"color:#0048ff;\">http:\/\/dev.mysql.com\/doc\/refman\/5.1\/zh\/index.html<\/span><\/a>\u3002mysql\u7684\u4e0b\u8f7d\u5730\u5740\uff1a<a target=\"_blank\" href=\"http:\/\/dev.mysql.com\/downloads\/mysql\/5.1.html\"><span style=\"color:#0048ff;\">http:\/\/dev.mysql.com\/downloads\/mysql\/5.1.html<\/span><\/a>\u3002<\/p>\n<p> &nbsp; &nbsp; &nbsp; \u586b\u4e0a\u5b89\u88c5\u76ee\u5f55\uff0c\u4f8b\u5982\u201cF:MySQL\u201d\uff0c\u4e5f\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>\u5e0c\u671b\u4ee5\u4e0amysql5.1\u5b89\u88c5\u56fe\u89e3\u53ef\u4ee5\u7ed9\u4f60\u4e00\u4e9b\u5e2e\u52a9\uff0c\u5927\u5bb6\u5171\u540c\u5b66\u4e60mysql<\/p>\n","protected":false},"excerpt":{"rendered":"\u3000\u3000\u6700\u8fd1\u5b89\u88c5MYSQL\u65f6\u8001\u662f\u51fa\u73b0\u201cmysql-Could not start the service MySQ \u00b7\u00b7\u00b7","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"views":280,"_links":{"self":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts\/10"}],"collection":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/comments?post=10"}],"version-history":[{"count":0,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/posts\/10\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/media?parent=10"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/categories?post=10"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.yyhcw.com\/api\/wp\/v2\/tags?post=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}