{"id":260,"date":"2009-03-17T21:21:00","date_gmt":"2009-03-17T01:21:00","guid":{"rendered":""},"modified":"2009-03-17T21:21:00","modified_gmt":"2009-03-17T01:21:00","slug":"","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/260.html","title":{"rendered":"\u5fd8\u8bb0MySQL\u5bc6\u7801\u89e3\u51b3\u529e\u6cd5"},"content":{"rendered":"<p><html><head><meta http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\" \/><title>\u5fd8\u8bb0MySQL\u5bc6\u7801\u89e3\u51b3\u529e\u6cd5<\/title><\/head><body><\/p>\n<h1 style=\"display:none\">\u5fd8\u8bb0MySQL\u5bc6\u7801\u89e3\u51b3\u529e\u6cd5<\/h1>\n<div>\n<p>\n\u6ce8:\u6211\u7684\u670d\u52a1\u5668\u7cfb\u7edf\u662fWindows\uff0c\u5982\u679c\u60a8\u7684\u662flinux\uff0c\u8bf7\u81ea\u884c\u67e5\u9605\uff0e<\/p>\n<p>cmd\u91cc\u6267\u884c\u547d\u4ee4\u5982\u4e0b:<\/p>\n<p>net stop mysql (\u7ec8\u6b62mysql\u8fdb\u7a0b)<br \/>\nmysqld-nt -uroot &#8211;skip-grant-tables &amp; (\u4ee5\u4e0d\u9a8c\u8bc1\u5bc6\u7801\u7684\u65b9\u5f0f\u542f\u52a8mysql)<br \/>\nmysql -uroot (\u7528root\u767b\u5f55mysql)<\/p>\n<p>\u63a5\u4e0b\u6765\u5c31\u662fmysql\u7684\u547d\u4ee4\u884c\u4e86<\/p>\n<p>mysql&gt; update mysql.user set password=PASSWORD(&#8216;\u60a8\u8981\u8bbe\u7f6e\u7684\u65b0\u5bc6\u7801&#8217;) where<\/p>\n<p>User=&#8217;root&#8217;;<br \/>\nmysql&gt; flush privileges; (\u5237\u65b0\u6743\u9650\u8868\uff0c\u76ee\u7684\u662f\u4e3a\u4e86\u8ba9\u4e0a\u4e00\u53e5\u786e\u5b9e\u751f\u6548)<br \/>\nmysql&gt; quit (\u79bb\u5f00mysql\u547d\u4ee4\u884c\uff0c\u56de\u5230cmd)<\/p>\n<p>\u7136\u540e\uff0c\u518d\u5728cmd\u91cc\uff1a<\/p>\n<p>net start mysql (\u91cd\u542fmysql)<\/p>\n<p>\u5f53\u7136\uff0c\u60a8\u4e5f\u53ef\u4ee5\u91cd\u542f\u670d\u52a1\u5668\uff0c\u6548\u679c\u4e00\u6837\uff0e\n <\/p>\n<\/div>\n<p><\/body><\/html><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5fd8\u8bb0MySQL\u5bc6\u7801\u89e3\u51b3\u529e\u6cd5 \u5fd8\u8bb0MySQL\u5bc6\u7801\u89e3\u51b3\u529e\u6cd5 \u6ce8:\u6211\u7684\u670d\u52a1\u5668\u7cfb\u7edf\u662fWindows\uff0c\u5982\u679c\u60a8\u7684\u662flinu [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-260","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/260","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=260"}],"version-history":[{"count":0,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/260\/revisions"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=260"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=260"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=260"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}