{"id":776,"date":"2019-11-26T16:18:49","date_gmt":"2019-11-26T08:18:49","guid":{"rendered":"http:\/\/blog.coolcoding.cn\/?p=776"},"modified":"2020-09-27T17:02:19","modified_gmt":"2020-09-27T09:02:19","slug":"mysql5-7-for-windows","status":"publish","type":"post","link":"https:\/\/blog.coolcoding.cn\/?p=776","title":{"rendered":"mysql5.7-for-windows"},"content":{"rendered":"\n<p>\u4e00\u3001\u4e0b\u8f7dmysql5.7<br> \u8fdbmysql\u5b98\u7f51\uff0cDownloads\/Community\/MysqlCommunityServer\/<br> \u9009\u62e9\u8001\u7248\u672c Looking for the latest GA version<br> \u4e8c\u3001\u4e0b\u8f7d\u5b8c\u89e3\u538b\u653e\u5728\u4e00\u4e2a\u76ee\u5f55\u4e2d\uff0c\u4f8b\u5982<br> D:\\mysql-5.7.28-winx64<br> \u5e76\u521b\u5efa\u4e00\u4e2a\u76ee\u5f55<br> D:\\mysql-5.7.28-winx64\\data<br> \u4e09\u3001\u7cfb\u7edf\u53d8\u91cf\u6dfb\u52a0path\uff1aD:\\mysql-5.7.28-winx64\\bin<br> \u56db\u3001\u521b\u5efaD:\\mysql-5.7.28-winx64\\my.ini\uff0c\u5185\u5bb9\u5982\u4e0b<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>[mysqld]\nport=3306\nbasedir=D:\/mysql-5.7.28-winx64\ndatadir=D:\/mysql-5.7.28-winx64\/data\nmax_connections=200\ncharacter-set-server=utf8\ndefault-storage-engine=INNODB\nsql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES\n[mysql]\ndefault-character-set=utf8<\/code><\/pre>\n\n\n\n<p> \u4e94\u3001\u4ee5\u7ba1\u7406\u5458\u8eab\u4efd\u8fd0\u884ccmd<br> \u5728D:\/mysql-5.7.28-winx64\/bin\u76ee\u5f55\u4e2d<br> mysqld -install<br> mysqld &#8211;initialize-insecure &#8211;user=mysql<br> net start mysql<br> \u516d\u3001mysql -u root -p<br> \u8fdb\u53bb\uff0c\u4fee\u6539\u5bc6\u7801<br> set password for root@localhost = password(&#8216;\u65b0\u5bc6\u7801&#8217;);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001\u4e0b\u8f7dmysql5.7 \u8fdbmysql\u5b98\u7f51\uff0cDownloads\/Community\/MysqlCommunit [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/776"}],"collection":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=776"}],"version-history":[{"count":1,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/776\/revisions"}],"predecessor-version":[{"id":777,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=\/wp\/v2\/posts\/776\/revisions\/777"}],"wp:attachment":[{"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=776"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=776"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.coolcoding.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=776"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}