{"id":257,"date":"2021-10-28T20:00:24","date_gmt":"2021-10-28T12:00:24","guid":{"rendered":"http:\/\/47.98.165.52\/?p=257"},"modified":"2021-11-09T19:23:04","modified_gmt":"2021-11-09T11:23:04","slug":"%e4%be%bf%e6%90%ba%e7%89%88mysql%e5%ae%89%e8%a3%85%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"\/?p=257","title":{"rendered":"mysql\u5b89\u88c5\u914d\u7f6e\u4e0e\u5378\u8f7d"},"content":{"rendered":"<h2>\u5b89\u88c5<\/h2>\n<h3>\u5b89\u88c5\u73af\u5883<\/h3>\n<ul>\n<li>Windows \u7248\u672c\uff1aWindows 10 \u4e13\u4e1a\u7248 64bit<\/li>\n<li>MySQL \u7248\u672c\uff1aMySQL 5.7.29<\/li>\n<\/ul>\n<p><a href=\"https:\/\/downloads.mysql.com\/archives\/community\/\">https:\/\/downloads.mysql.com\/archives\/community\/<\/a><\/p>\n<h3>\u914d\u7f6e\u8fc7\u7a0b<\/h3>\n<h4>\u4e0b\u8f7d MySQL Community Server<\/h4>\n<p><a href=\"https:\/\/downloads.mysql.com\/archives\/community\/\">https:\/\/downloads.mysql.com\/archives\/community\/<\/a><\/p>\n<p><a href=\"https:\/\/cdn.mysql.com\/archives\/mysql-5.7\/mysql-5.7.29-winx64.zip\">https:\/\/cdn.mysql.com\/archives\/mysql-5.7\/mysql-5.7.29-winx64.zip<\/a><\/p>\n<ul>\n<li>\u9009\u62e9\u5408\u9002\u81ea\u5df1\u64cd\u4f5c\u7cfb\u7edf\u7684\u7248\u672c\uff0c\u901a\u5e38\u4f7f\u7528 Windows (x86, 64-bit), ZIP Archive<\/li>\n<\/ul>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1968199-39066a5533786797.webp\" alt=\"image\" \/><\/p>\n<ul>\n<li>\u70b9\u51fb Download \u540e\uff0c\u4f1a\u63d0\u793a\u7528\u6237\u767b\u9646 \/ \u6ce8\u518c\uff0c\u53ef\u4ee5\u5728\u4e0b\u65b9\u9009\u62e9 \u201cNo thanks, just start my download.\u201d \u8df3\u8fc7\u767b\u9646 \/ \u6ce8\u518c\u6b65\u9aa4\u3002<\/li>\n<\/ul>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/1968199-7a31be90885ac238.webp\" alt=\"image\" \/><\/p>\n<h4>\u89e3\u538b\u5e76\u201c\u5408\u7406\u5b89\u653e\u201d MySQL Server<\/h4>\n<ul>\n<li>\n<p>\u5c06\u4e0b\u8f7d\u597d\u7684<code>mysql-5.7.29-winx64.zip<\/code>\u89e3\u538b\uff0c\u5e76\u5c06\u89e3\u538b\u597d\u7684\u6587\u4ef6\u5939\u59a5\u5584\u653e\u7f6e\uff08\u6bd4\u5982\u653e\u7f6e\u5728 Program FIles \u6587\u4ef6\u5939\u5185\uff09\u3002<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/image-20211028192151187.png\" alt=\"image-20211028192151187\" \/><\/p>\n<\/li>\n<li>\n<p>\u4e3a MySQL Server \u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<\/li>\n<\/ul>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/image-20211028192308702.png\" alt=\"image-20211028192308702\" \/><\/p>\n<h4>\u6ce8\u518c MySQL \u670d\u52a1<\/h4>\n<ul>\n<li>\u5728mysql\u7684bin\u76ee\u5f55\u4e0b\uff0c\u4e14\u4ee5\u7ba1\u7406\u5458\u6253\u5f00\u7ec8\u7aef\uff0c\u6267\u884c<code>mysqld -install<\/code>\u6307\u4ee4<\/li>\n<\/ul>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/image-20211028192942926.png\" alt=\"image-20211028192942926\" \/><\/p>\n<h4>\u914d\u7f6e my.ini<\/h4>\n<ul>\n<li>\n<p>\u8fdb\u5165 MySQL \u6240\u5728\u7684\u6587\u4ef6\u5939<\/p>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/image-20211028193215014.png\" alt=\"image-20211028193215014\" \/><\/p>\n<\/li>\n<li>\n<p>\u65b0\u5efa<code>my.ini<\/code> (\u5343\u4e07\u4e0d\u8981\u4f7f\u7528\u8bb0\u4e8b\u672c,\u7528notpad++\u6216\u8005\u662fsublime\u7b49\u90fd\u53ef\u4ee5)<\/p>\n<\/li>\n<\/ul>\n<pre><code>[client]\nport= 3306\nsocket= \/tmp\/mysql.sock\ndefault-character-set= utf8\n\n[mysqld]\nport= 3306\n\n# \u8bbe\u7f6emysql\u7684\u5b89\u88c5\u76ee\u5f55\nbasedir= &quot;D:\\SoftWare\\mysql-5.7.29-winx64\\mysql-5.7.29-winx64&quot;\n\n# \u8bbe\u7f6emysql\u6570\u636e\u5e93\u7684\u6570\u636e\u7684\u5b58\u653e\u76ee\u5f55\ndatadir= &quot;D:\\SoftWare\\mysql-5.7.29-winx64\\mysql-5.7.29-winx64\\data&quot;\n\n# tmpdir= &quot;C:\\Apps\\mysql\\tempData&quot;\n\n# \u521b\u5efa\u65b0\u8868\u65f6\u5c06\u4f7f\u7528\u7684\u9ed8\u8ba4\u5b58\u50a8\u5f15\u64ce\ndefault-storage-engine=INNODB\n\nsocket = \/tmp\/mysql.sock\n\n# \u8bbe\u7f6emysql\u670d\u52a1\u5668\u7684\u5b57\u7b26\u96c6\n#default-character-set=utf8\n\n# \u670d\u52a1\u7aef\u4f7f\u7528\u7684\u5b57\u7b26\u96c6\u9ed8\u8ba4\u4e3a8\u6bd4\u7279\u7f16\u7801\u7684latin1\u5b57\u7b26\u96c6\n\n#character-set-server=utf8\n\n# mysql\u670d\u52a1\u5668\u652f\u6301\u7684\u6700\u5927\u5e76\u53d1\u8fde\u63a5\u6570\uff08\u7528\u6237\u6570\uff09\u3002\u4f46\u603b\u4f1a\u9884\u7559\u5176\u4e2d\u7684\u4e00\u4e2a\u8fde\u63a5\u7ed9\u7ba1\u7406\u5458\u4f7f\u7528\u8d85\u7ea7\u6743\u9650\u767b\u5f55\uff0c\u5373\u4f7f\u8fde\u63a5\u6570\u76ee\u8fbe\u5230\u6700\u5927\u9650\u5236\u3002\u5982\u679c\u8bbe\u7f6e\u5f97\u8fc7\u5c0f\u800c\u7528\u6237\u6bd4\u8f83\u591a\uff0c\u4f1a\u7ecf\u5e38\u51fa\u73b0\u201cToo many connections\u201d\u9519\u8bef\u3002\nmax_connections=100\n\n# \u67e5\u8be2\u7f13\u5b58\u5927\u5c0f\uff0c\u7528\u4e8e\u7f13\u5b58SELECT\u67e5\u8be2\u7ed3\u679c\u3002\u5982\u679c\u6709\u8bb8\u591a\u8fd4\u56de\u76f8\u540c\u67e5\u8be2\u7ed3\u679c\u7684SELECT\u67e5\u8be2\uff0c\u5e76\u4e14\u5f88\u5c11\u6539\u53d8\u8868\uff0c\u53ef\u4ee5\u8bbe\u7f6equery_cache_size\u5927\u4e8e0\uff0c\u53ef\u4ee5\u6781\u5927\u6539\u5584\u67e5\u8be2\u6548\u7387\u3002\u800c\u5982\u679c\u8868\u6570\u636e\u9891\u7e41\u53d8\u5316\uff0c\u5c31\u4e0d\u8981\u4f7f\u7528\u8fd9\u4e2a\uff0c\u4f1a\u9002\u5f97\u5176\u53cd\nquery_cache_size=0\n\n# \u8fd9\u4e2a\u53c2\u6570\u57285.1.3\u4e4b\u540e\u7684\u7248\u672c\u4e2d\u53eb\u505atable_open_cache\uff0c\u7528\u4e8e\u8bbe\u7f6etable\u9ad8\u901f\u7f13\u5b58\u7684\u6570\u91cf\u3002\u7531\u4e8e\u6bcf\u4e2a\u5ba2\u6237\u7aef\u8fde\u63a5\u90fd\u4f1a\u81f3\u5c11\u8bbf\u95ee\u4e00\u4e2a\u8868\uff0c\u56e0\u6b64\u6b64\u53c2\u6570\u7684\u503c\u4e0e       max_connections\u6709\u5173\u3002\u5f53\u67d0\u4e00\u8fde\u63a5\u8bbf\u95ee\u4e00\u4e2a\u8868\u65f6\uff0cMySQL\u4f1a\u68c0\u67e5\u5f53\u524d\u5df2\u7f13\u5b58\u8868\u7684\u6570\u91cf\u3002\u5982\u679c\u8be5\u8868\u5df2\u7ecf\u5728\u7f13\u5b58\u4e2d\u6253\u5f00\uff0c\u5219\u4f1a\u76f4\u63a5\u8bbf\u95ee\u7f13\u5b58\u4e2d\u7684\u8868\u5df2\u52a0\u5feb\u67e5\u8be2\u901f\u5ea6\uff1b\u5982\u679c\u8be5\u8868\u672a\u88ab\u7f13\u5b58\uff0c\u5219\u4f1a\u5c06\u5f53\u524d\u7684\u8868\u6dfb\u52a0\u8fdb\u7f13\u5b58\u5e76\u8fdb\u884c\u67e5\u8be2\u3002\u5728\u6267\u884c\u7f13\u5b58\u64cd\u4f5c\u4e4b\u524d\uff0ctable_cache\u7528\u4e8e\u9650\u5236\u7f13\u5b58\u8868\u7684\u6700\u5927\u6570\u76ee\uff1a\u5982\u679c\u5f53\u524d\u5df2\u7ecf\u7f13\u5b58\u7684\u8868\u672a\u8fbe\u5230table_cache\uff0c\u5219\u4f1a\u5c06\u65b0\u8868\u6dfb\u52a0\u8fdb\u6765\uff1b\u82e5\u5df2\u7ecf\u8fbe\u5230\u6b64\u503c\uff0cMySQL\u5c06\u6839\u636e\u7f13\u5b58\u8868\u7684\u6700\u540e\u67e5\u8be2\u65f6\u95f4\u3001\u67e5\u8be2\u7387\u7b49\u89c4\u5219\u91ca\u653e\u4e4b\u524d\u7684\u7f13\u5b58\u3002\n#table_cache=256\n\n# \u5185\u5b58\u4e2d\u7684\u6bcf\u4e2a\u4e34\u65f6\u8868\u5141\u8bb8\u7684\u6700\u5927\u5927\u5c0f\u3002\u5982\u679c\u4e34\u65f6\u8868\u5927\u5c0f\u8d85\u8fc7\u8be5\u503c\uff0c\u4e34\u65f6\u8868\u5c06\u81ea\u52a8\u8f6c\u4e3a\u57fa\u4e8e\u78c1\u76d8\u7684\u8868\uff08Disk Based Table\uff09\u3002\ntmp_table_size=34M\n\n# \u7f13\u5b58\u7684\u6700\u5927\u7ebf\u7a0b\u6570\u3002\u5f53\u5ba2\u6237\u7aef\u8fde\u63a5\u65ad\u5f00\u65f6\uff0c\u5982\u679c\u5ba2\u6237\u7aef\u603b\u8fde\u63a5\u6570\u5c0f\u4e8e\u8be5\u503c\uff0c\u5219\u5904\u7406\u5ba2\u6237\u7aef\u4efb\u52a1\u7684\u7ebf\u7a0b\u653e\u56de\u7f13\u5b58\u3002\u5728\u9ad8\u5e76\u53d1\u60c5\u51b5\u4e0b\uff0c\u5982\u679c\u8be5\u503c\u8bbe\u7f6e\u5f97\u592a\u5c0f\uff0c\u5c31\u4f1a\u6709\u5f88\u591a\u7ebf\u7a0b\u9891\u7e41\u521b\u5efa\uff0c\u7ebf\u7a0b\u521b\u5efa\u7684\u5f00\u9500\u4f1a\u53d8\u5927\uff0c\u67e5\u8be2\u6548\u7387\u4e5f\u4f1a\u4e0b\u964d\u3002\u4e00\u822c\u6765\u8bf4\u5982\u679c\u5728\u5e94\u7528\u7aef\u6709\u826f\u597d\u7684\u591a\u7ebf\u7a0b\u5904\u7406\uff0c\u8fd9\u4e2a\u53c2\u6570\u5bf9\u6027\u80fd\u4e0d\u4f1a\u6709\u592a\u5927\u7684\u63d0\u9ad8\u3002\nthread_cache_size=8\n\nskip-grant-tables\n\n#------------------------------MyISAM\u76f8\u5173\u53c2\u6570    begin--------------------------------\n\n# mysql\u91cd\u5efa\u7d22\u5f15\u65f6\u5141\u8bb8\u4f7f\u7528\u7684\u4e34\u65f6\u6587\u4ef6\u6700\u5927\u5927\u5c0f\nmyisam_max_sort_file_size=100G\n\nmyisam_sort_buffer_size=68M\n\n# Key Buffer\u5927\u5c0f\uff0c\u7528\u4e8e\u7f13\u5b58MyISAM\u8868\u7684\u7d22\u5f15\u5757\u3002\u51b3\u5b9a\u6570\u636e\u5e93\u7d22\u5f15\u5904\u7406\u7684\u901f\u5ea6\uff08\u5c24\u5176\u662f\u7d22\u5f15\u8bfb\uff09\nkey_buffer_size=54M\n\n# \u7528\u4e8e\u5bf9MyISAM\u8868\u5168\u8868\u626b\u63cf\u65f6\u4f7f\u7528\u7684\u7f13\u51b2\u533a\u5927\u5c0f\u3002\u9488\u5bf9\u6bcf\u4e2a\u7ebf\u7a0b\u8fdb\u884c\u5206\u914d\uff08\u524d\u63d0\u662f\u8fdb\u884c\u4e86\u5168\u8868\u626b\u63cf\uff09\u3002\u8fdb\u884c\u6392\u5e8f\u67e5\u8be2\u65f6\uff0cMySql\u4f1a\u9996\u5148\u626b\u63cf\u4e00\u904d\u8be5\u7f13\u51b2\uff0c\u4ee5\u907f\u514d\u78c1\u76d8\u641c\u7d22\uff0c\u63d0\u9ad8\u67e5\u8be2\u901f\u5ea6\uff0c\u5982\u679c\u9700\u8981\u6392\u5e8f\u5927\u91cf\u6570\u636e\uff0c\u53ef\u9002\u5f53\u8c03\u9ad8\u8be5\u503c\u3002\u4f46MySql\u4f1a\u4e3a\u6bcf\u4e2a\u5ba2\u6237\u8fde\u63a5\u53d1\u653e\u8be5\u7f13\u51b2\u7a7a\u95f4\uff0c\u6240\u4ee5\u5e94\u5c3d\u91cf\u9002\u5f53\u8bbe\u7f6e\u8be5\u503c\uff0c\u4ee5\u907f\u514d\u5185\u5b58\u5f00\u9500\u8fc7\u5927\u3002\nread_buffer_size=64K\n\nread_rnd_buffer_size=256K\n# connection\u7ea7\u53c2\u6570\uff08\u4e3a\u6bcf\u4e2a\u7ebf\u7a0b\u914d\u7f6e\uff09\uff0c500\u4e2a\u7ebf\u7a0b\u5c06\u6d88\u8017500*256K\u7684sort_buffer_size\u3002\nsort_buffer_size=256K\n\n# InnoDB\u7528\u4e8e\u5b58\u50a8\u5143\u6570\u636e\u4fe1\u606f\u7684\u5185\u5b58\u6c60\u5927\u5c0f\uff0c\u4e00\u822c\u4e0d\u9700\u4fee\u6539\n\n# \u4e8b\u52a1\u76f8\u5173\u53c2\u6570\uff0c\u5982\u679c\u503c\u4e3a1\uff0c\u5219InnoDB\u5728\u6bcf\u6b21commit\u90fd\u4f1a\u5c06\u4e8b\u52a1\u65e5\u5fd7\u5199\u5165\u78c1\u76d8\uff08\u78c1\u76d8IO\u6d88\u8017\u8f83\u5927\uff09\uff0c\u8fd9\u6837\u4fdd\u8bc1\u4e86\u5b8c\u5168\u7684ACID\u7279\u6027\u3002\u800c\u5982\u679c\u8bbe\u7f6e\u4e3a0\uff0c\u5219\u8868\u793a\u4e8b\u52a1\u65e5\u5fd7\u5199\u5165\u5185\u5b58log\u548c\u5185\u5b58log\u5199\u5165\u78c1\u76d8\u7684\u9891\u7387\u90fd\u4e3a1\u6b21\/\u79d2\u3002\u5982\u679c\u8bbe\u4e3a2\u5219\u8868\u793a\u4e8b\u52a1\u65e5\u5fd7\u5728\u6bcf\u6b21commit\u90fd\u5199\u5165\u5185\u5b58log\uff0c\u4f46\u5185\u5b58log\u5199\u5165\u78c1\u76d8\u7684\u9891\u7387\u4e3a1\u6b21\/\u79d2\u3002\ninnodb_flush_log_at_trx_commit =1\n\n# InnoDB\u65e5\u5fd7\u6570\u636e\u7f13\u51b2\u5927\u5c0f\uff0c\u5982\u679c\u7f13\u51b2\u6ee1\u4e86\uff0c\u5c31\u4f1a\u5c06\u7f13\u51b2\u4e2d\u7684\u65e5\u5fd7\u6570\u636e\u5199\u5165\u78c1\u76d8\uff08flush\uff09\u3002\u7531\u4e8e\u4e00\u822c\u81f3\u5c11\u90fd1\u79d2\u949f\u4f1a\u5199\u4e00\u6b21\u78c1\u76d8\uff0c\u6240\u4ee5\u6ca1\u5fc5\u8981\u8bbe\u7f6e\u8fc7\u5927\uff0c\u5373\u4f7f\u662f\u957f\u4e8b\u52a1\u3002\ninnodb_log_buffer_size=2M\n\n# InnoDB\u4f7f\u7528\u7f13\u51b2\u6c60\u6765\u7f13\u5b58\u7d22\u5f15\u548c\u884c\u6570\u636e\u3002\u8be5\u503c\u8bbe\u7f6e\u7684\u8d8a\u5927\uff0c\u5219\u78c1\u76d8IO\u8d8a\u5c11\u3002\u4e00\u822c\u5c06\u8be5\u503c\u8bbe\u4e3a\u7269\u7406\u5185\u5b58\u768480%\u3002\ninnodb_buffer_pool_size=105M\n\n# \u6bcf\u4e00\u4e2aInnoDB\u4e8b\u52a1\u65e5\u5fd7\u7684\u5927\u5c0f\u3002\u4e00\u822c\u8bbe\u4e3ainnodb_buffer_pool_size\u768425%\u5230100%\ninnodb_log_file_size=53M\n\n# InnoDB\u5185\u6838\u6700\u5927\u5e76\u53d1\u7ebf\u7a0b\u6570\ninnodb_thread_concurrency=9\n\n#-------------------------------# InnoDB\u76f8\u5173\u53c2\u6570  end -------------------------------<\/code><\/pre>\n<ul>\n<li>\u5728\u521a\u624d\u7684\u201c\u547d\u4ee4\u63d0\u793a\u7b26\u201d\u4e2d\uff0c\u6267\u884c<code>mysqld --initialize<\/code>\uff08\u53ef\u80fd\u4f1a\u5047\u6b7b\uff0c\u7b49\u4e00\u5206\u949f\u624b\u52a8\u5173\u95ed\u5c31\u597d\uff09\u3002<\/li>\n<li>\u5f00\u542f MySQL Server:<code>net start mysql<\/code><\/li>\n<\/ul>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/image-20211028193753427.png\" alt=\"image-20211028193753427\" \/><\/p>\n<ul>\n<li>\u518d\u6267\u884c<code>mysqld --skip-grant-tables<\/code>\u5f00\u542f\u65e0\u5bc6\u7801\u7684 MySQL Server<\/li>\n<li>\u6253\u5f00\u4e00\u4e2a\u65b0\u7684\u201c\u547d\u4ee4\u63d0\u793a\u7b26\u201d\uff0c\u6267\u884c<code>mysql -u root<\/code>\u767b\u9646 MySQL Server<\/li>\n<li>\u6267\u884c<code>flush privileges;<\/code>\u5237\u65b0\u6743\u9650\u3002<\/li>\n<li>\u6267\u884c<code>grant all privileges on *.* to &#039;root&#039;@&#039;localhost&#039; identified by &#039;\u4f60\u60f3\u8bbe\u7f6e\u7684\u5bc6\u7801&#039; with grant option;<\/code>\u3002<\/li>\n<li>\u6267\u884c<code>flush privileges;<\/code>\u5237\u65b0\u65b0\u7684 root \u7528\u6237\u5bc6\u7801<\/li>\n<li>\u6267\u884c<code>exit<\/code>\u9000\u51fa MySQL<\/li>\n<\/ul>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/image-20211028194902424.png\" alt=\"image-20211028194902424\" \/><\/p>\n<ul>\n<li>\u5728\u4efb\u52a1\u7ba1\u7406\u5668\uff08\u8fdb\u7a0b\uff09\u4e0b\u624b\u52a8\u7ed3\u675f<code>mysqld.exe<\/code><\/li>\n<\/ul>\n<p><img src=\"https:\/\/lemon-guess.oss-cn-hangzhou.aliyuncs.com\/img\/image-20211028194954230.png\" alt=\"image-20211028194954230\" \/><\/p>\n<ul>\n<li>\u5728\u201c\u547d\u4ee4\u63d0\u793a\u7b26\u201d\u4e0b\u6267\u884c<code>net start mysql<\/code>\u91cd\u65b0\u5f00\u542fMySQL Server\uff0c\u518d\u6b21\u4f7f\u7528<code>mysql -u root -p \u4f60\u8bbe\u7f6e\u7684\u5bc6\u7801<\/code>\u5373\u53ef\u5b89\u5168\u767b\u9646 MySQL\u3002<\/li>\n<\/ul>\n<h2>\u5378\u8f7d<\/h2>\n<blockquote>\n<p>\u5378\u8f7d\u5e72\u51c0MySQL\u7684\u6b65\u9aa4\uff1a\u9996\u5148\u5173\u95edMySQL\u670d\u52a1\uff1b\u7136\u540e\u5378\u8f7dMySQL\u8f6f\u4ef6\uff1b\u63a5\u7740\u5220\u9664MySQL\u5728\u7535\u8111\u4e2d\u7684\u6b8b\u5b58\u6587\u4ef6\uff1b\u6700\u540e\u5220\u9664MySQL\u6ce8\u518c\u8868\u4fe1\u606f\u5373\u53ef\u3002<\/p>\n<\/blockquote>\n<p>\u5f88\u591a\u4eba\u90fd\u9047\u5230\u8fc7\u4e00\u4e2a\u95ee\u9898\uff0c\u90a3\u5c31\u662f\u5728\u5b89\u88c5MySQL\u7684\u65f6\u5019\u64cd\u4f5c\u9519\u8bef\uff0c\u6700\u540e\u7ed3\u679c\u4e0d\u662f\u81ea\u5df1\u60f3\u8981\u7684\u3002\u5378\u8f7d\u91cd\u65b0\u5b89\u88c5\u53c8\u53d1\u73b0\u5b89\u88c5\u4e0d\u4e86\u3002\u5176\u5b9e\u6700\u4e3b\u8981\u7684\u539f\u56e0\u5c31\u662f\u6ca1\u6709\u5c06MySQL\u5378\u8f7d\u5e72\u51c0\uff0c\u90a3\u4e48\u5982\u4f55\u628aMySQL\u5378\u8f7d\u5e72\u51c0\uff1f\u4e0b\u9762\u672c\u7bc7\u6587\u7ae0\u5c31\u6765\u7ed9\u5927\u5bb6\u4e00\u6b65\u6b65\u4ecb\u7ecd\u5c06mysql\u5378\u8f7d\u5e72\u51c0\u7684\u65b9\u6cd5\uff0c\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<h3>\u6b65\u9aa41\uff1a\u5173\u95edMySQL\u670d\u52a1<\/h3>\n<p>\u53f3\u51fb\u3010\u8ba1\u7b97\u673a\u3011\uff0c\u9009\u62e9\u3010\u7ba1\u7406\u3011\uff0c\u6253\u5f00\u201c\u8ba1\u7b97\u673a\u7ba1\u7406\u201d\u754c\u9762<\/p>\n<p>\u9009\u62e9\u3010\u670d\u52a1\u548c\u5e94\u7528\u7a0b\u5e8f\u3011\u4e2d\u7684\u3010\u670d\u52a1\u3011\uff0c\u5728\u53f3\u4fa7\u627e\u5230\u3010mysql\u3011\uff0c\u53f3\u952e\uff0c\u9009\u62e9\u3010\u505c\u6b62\u3011<\/p>\n<p><img src=\"https:\/\/img.php.cn\/upload\/image\/366\/855\/957\/1556336673755152.png\" alt=\"1556336673755152.png\" \/><\/p>\n<h3>\u6b65\u9aa42\uff1a\u5378\u8f7dmysql\u8f6f\u4ef6<\/h3>\n<p>\u53ef\u4ee5\u5728\u63a7\u5236\u9762\u677f\u4e2d\u5378\u8f7d<\/p>\n<p>\u4e5f\u53ef\u4ee5\u4f7f\u7528\u8f6f\u4ef6\u7ba1\u5bb6\u6765\u5378\u8f7d<\/p>\n<h3>\u6b65\u9aa43\uff1a\u5220\u9664MySQL\u5728\u7535\u8111\u786c\u76d8\u4e0a\u7269\u7406\u4f4d\u7f6e\u4e0a\u7684\u6240\u6709\u6587\u4ef6<\/h3>\n<p>1\u3001\u5378\u8f7d\u8fc7\u540e\u5220\u9664C:\\Program Files (x86)\\MySQL\u8be5\u76ee\u5f55\u4e0b\u5269\u4f59\u4e86\u6240\u6709\u6587\u4ef6\uff0c\u628amysql\u6587\u4ef6\u5939\u4e5f\u5220\u4e86<\/p>\n<p>2\u3001\u5220\u9664HKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet002\\Services\\Eventlog\\Application\\MySQL\u6587\u4ef6\u5939\uff0c\u5982\u679c\u6ca1\u6709\u53ef\u4ee5\u4e0d\u7528\u5220\u9664\u4e86\u3002<\/p>\n<p>3\u3001\u5220\u9664C\u76d8\u4e0b\u7684C:\\ProgramData\\MySQL \u6240\u6709\u6587\u4ef6\uff0c\u5982\u679c\u5220\u9664\u4e0d\u4e86\u5219\u7528360\u7c89\u788e\u6389\u5373\u53ef\uff0c\u8be5programData\u6587\u4ef6\u662f\u9690\u85cf\u7684\u9ed8\u8ba4\uff0c\u8bbe\u7f6e\u663e\u793a\u540e\u5373\u53ef\u89c1<\/p>\n<p><img src=\"https:\/\/img.php.cn\/upload\/image\/303\/895\/938\/1556336800591415.png\" alt=\"8.png\" \/><\/p>\n<p>4\u3001\u5173\u952e\uff01\uff01\uff01\uff01\u5220\u9664C:\\Documents and Settings\\All Users\\Application Data\\MySQL\u4e0b\u7684\u6587\u4ef6\u5939\uff0c\u4e00\u5b9a\u8981\u5220<\/p>\n<p><img src=\"https:\/\/img.php.cn\/upload\/image\/462\/321\/929\/1556336805167649.png\" alt=\"9.png\" \/><\/p>\n<p>\u6ce8\uff1a\u53ef\u4ee5\u901a\u8fc7window\u7cfb\u7edf\u81ea\u5e26\u7684\u5173\u952e\u5b57\u67e5\u627e\u529f\u80fd\u6765\u67e5\u627e\u76f8\u5173\u8054\u7684\u6587\u4ef6<\/p>\n<p><img src=\"https:\/\/img.php.cn\/upload\/image\/887\/150\/381\/1556336789957757.png\" alt=\"5.png\" \/><\/p>\n<h3>\u6b65\u9aa44\uff1aMySQL\u7684\u6ce8\u518c\u8868\u4fe1\u606f<\/h3>\n<p>\u6ce8\uff1a\u8fd9\u6b65\u662f\u6700\u7e41\u7410\u7684\u4e5f\u662f\u6700\u4e3a\u5173\u952e\u7684\uff0c\u5f88\u591a\u4eba\u5c31\u662f\u56e0\u4e3a\u5728\u8fd9\u6b65\u9aa4\u4e2d\u6ca1\u6709\u6e05\u7406\u5e72\u51c0\u6ce8\u518c\u8868\u4fe1\u606f\uff0c\u4ece\u800c\u4e0d\u80fd\u91cd\u65b0\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<p>1\u3001windows+R\u8fd0\u884c\u201cregedit\u201d\u6587\u4ef6\uff0c\u6253\u5f00\u6ce8\u518c\u8868<\/p>\n<p><img src=\"https:\/\/img.php.cn\/upload\/image\/700\/639\/843\/1556336835677721.png\" alt=\"6.png\" \/><\/p>\n<p>2\u3001\u5220\u9664\u6ce8\u518c\u8868\uff1aHKEY_LOCAL_MACHINE\\SYSTEM\\ControlSet001\\Services\\Eventlog\\Application\\MySQL\u6587\u4ef6\u5939<\/p>\n<p><img src=\"https:\/\/img.php.cn\/upload\/image\/361\/173\/286\/1556336841323110.png\" alt=\"1556336841323110.png\" \/><\/p>\n<h3>\u6b65\u9aa45\uff1a\u91cd\u542f\u4e0b\u7535\u8111<\/h3>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u91cd\u65b0\u5b89\u88c5MySQL\u8f6f\u4ef6\u4e86\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88c5 \u5b89\u88c5\u73af\u5883 Windows \u7248\u672c\uff1aWindows 10 \u4e13\u4e1a\u7248 64bit MySQL \u7248\u672c\uff1aMySQL 5.7.29 https:   \u2026 &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0},"categories":[25],"tags":[24],"_links":{"self":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts\/257"}],"collection":[{"href":"\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=257"}],"version-history":[{"count":2,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/257\/revisions"}],"predecessor-version":[{"id":259,"href":"\/index.php?rest_route=\/wp\/v2\/posts\/257\/revisions\/259"}],"wp:attachment":[{"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=257"},{"taxonomy":"post_tag","embeddable":true,"href":"\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}