{"id":919,"date":"2017-10-16T16:09:05","date_gmt":"2017-10-16T08:09:05","guid":{"rendered":"http:\/\/192.168.1.20\/?p=919"},"modified":"2017-10-16T21:25:21","modified_gmt":"2017-10-16T13:25:21","slug":"{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}e9{d4daabd1ba368d9860c36387ddb72bbda14f8f9559d69d60a952800885260c03}9b{47dd41ec6bdcbd9a214c783a3735392b82ea6d1d918378c5a53e0640702d813","status":"publish","type":"post","link":"http:\/\/alextop.top\/?p=919","title":{"rendered":"Ubuntu\u4e0b\u5fd8\u8bb0MySQL\u7684root\u5bc6\u7801\u89e3\u51b3\u65b9\u6cd5"},"content":{"rendered":"<p>\u539f\u521b 2015\u5e7405\u670822\u65e5 22:00:08 \u6807\u7b7e\uff1a\u91cd\u7f6emysq \/ubuntu \/mysql \/root\u5bc6\u7801 \/\u600e\u4e48\u529e 1316<\/p>\n<p>\u7b2c0\u6b65\uff1a<\/p>\n<p>ubuntu\u7684VI\u7f16\u8f91\u5668\u6a21\u5f0f\uff0c\u6309\u4e0a\u4e0b\u5de6\u53f3\u4ee5\u53ca\u6eda\u52a8\u6ed1\u8f6e\u663e\u793aABCD\u5b57\u6bcd<br \/>\nsudo apt-get install vim \uff0c\u67e5\u770b\u662f\u5426\u5b89\u88c5<\/p>\n<p>\u7b2c1\u6b65\uff1a<br \/>\nsudo vi \/etc\/mysql\/my.cnf\uff0c\u5728[mysqld]\u6bb5\u4e2d\u52a0\u5165\u4e00\u884cskip-grant-tables<\/p>\n<p>\u7b2c2\u6b65\uff1a<br \/>\nsudo service mysql restart\uff0c\u91cd\u542fmySQL\u670d\u52a1<br \/>\nsudo mysql -u root -p mysql\uff0c\u7528\u7a7a\u5bc6\u7801\u8fdb\u5165mysql\u7ba1\u7406\u547d\u4ee4\u884c<br \/>\nuse mysql;<br \/>\nupdate user set password=password(&#8216;123456&#8242;) where user=&#8217;root&#8217;; \u62ec\u53f7\u91cc\u4e3a\u4f60\u8981\u4fee\u6539\u7684\u5bc6\u7801<br \/>\nflush privileges;\u5237\u65b0<br \/>\nquit \uff0c\u9000\u51fa<\/p>\n<p>\u7b2c3\u6b65\uff1a<\/p>\n<p>\u91cd\u590d\u7b2c1\u6b65sudo vim \/etc\/mysql\/my.cnf\uff0c\u628a\u521a\u624d\u52a0\u5165\u7684\u90a3\u4e00\u884c\u201cskip-grant-tables\u201d\u6ce8\u91ca\u6216\u5220\u9664<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u539f\u521b 2015\u5e7405\u670822\u65e5 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-919","post","type-post","status-publish","format-standard","hentry","category-jishu"],"_links":{"self":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts\/919"}],"collection":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=919"}],"version-history":[{"count":0,"href":"http:\/\/alextop.top\/index.php?rest_route=\/wp\/v2\/posts\/919\/revisions"}],"wp:attachment":[{"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=919"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=919"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/alextop.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}