{"id":1552,"date":"2017-09-06T15:30:17","date_gmt":"2017-09-06T07:30:17","guid":{"rendered":"http:\/\/coderbee.net\/?p=1552"},"modified":"2017-09-06T15:30:17","modified_gmt":"2017-09-06T07:30:17","slug":"mysql-5-7-%e9%87%8d%e7%bd%ae-root-%e5%af%86%e7%a0%81","status":"publish","type":"post","link":"https:\/\/coderbee.net\/index.php\/db\/20170906\/1552","title":{"rendered":"MySQL 5.7 \u91cd\u7f6e root \u5bc6\u7801"},"content":{"rendered":"<p>\u4ee5\u5b89\u5168\u6a21\u5f0f\u542f\u52a8\uff0c\u8fd9\u6837\u767b\u5f55\u4e0d\u9700\u8981\u5bc6\u7801\uff1a<\/p>\n<pre><code>mysqld_safe --skip-grant-tables &amp;\n<\/code><\/pre>\n<p>\u7528 root \u7528\u6237\u767b\u5f55<\/p>\n<pre><code>mysql -u root\n<\/code><\/pre>\n<p>\u66f4\u65b0\u5bc6\u7801\u3001\u5237\u65b0\u6743\u9650\uff1a<\/p>\n<pre><code class=\"sql\">UPDATE mysql.user\n    SET authentication_string = PASSWORD('SonarQB-0609.'), password_expired = 'N'\n    WHERE User = 'root' AND Host = 'localhost';\nFLUSH PRIVILEGES;\n<\/code><\/pre>\n<p>\u9000\u51fa\u5b89\u5168\u6a21\u5f0f\uff0c\u91cd\u65b0\u542f\u52a8 MySQL \u3002<\/p>\n<hr\/>\n<p>\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u5fae\u4fe1\u516c\u4f17\u53f7: <strong>coderbee\u7b14\u8bb0<\/strong>\uff0c\u53ef\u4ee5\u66f4\u53ca\u65f6\u56de\u590d\u4f60\u7684\u8ba8\u8bba\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"258\" height=\"258\" src=\"https:\/\/coderbee.net\/wp-content\/uploads\/2019\/01\/coderbee-note.jpg\" class=\"alignnone size-full wp-image-1707\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u5b89\u5168\u6a21\u5f0f\u542f\u52a8\uff0c\u8fd9\u6837\u767b\u5f55\u4e0d\u9700\u8981\u5bc6\u7801\uff1a mysqld_safe &#8211;skip-gr &hellip; <a href=\"https:\/\/coderbee.net\/index.php\/db\/20170906\/1552\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[149],"_links":{"self":[{"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/posts\/1552"}],"collection":[{"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/comments?post=1552"}],"version-history":[{"count":3,"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/posts\/1552\/revisions"}],"predecessor-version":[{"id":1555,"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/posts\/1552\/revisions\/1555"}],"wp:attachment":[{"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/media?parent=1552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/categories?post=1552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/coderbee.net\/index.php\/wp-json\/wp\/v2\/tags?post=1552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}