{"id":802,"date":"2012-08-29T11:34:33","date_gmt":"2012-08-29T03:34:33","guid":{"rendered":"http:\/\/www.kumouse.com\/?p=802"},"modified":"2012-08-29T11:34:33","modified_gmt":"2012-08-29T03:34:33","slug":"%e4%b8%a2%e5%a4%b1mysql%e5%af%86%e7%a0%81-%e5%a6%82%e4%bd%95%e9%87%8d%e7%bd%ae-%e9%87%8d%e7%bd%aemysql%e5%af%86%e7%a0%81","status":"publish","type":"post","link":"https:\/\/www.kumouse.com\/?p=802","title":{"rendered":"\u4e22\u5931mysql\u5bc6\u7801 \u5982\u4f55\u91cd\u7f6e \u91cd\u7f6emysql\u5bc6\u7801"},"content":{"rendered":"<p>\u4eca\u5929\u65e0\u4e8b\u5728php.org\u95f2\u901b\uff0c\u65e0\u610f\u4e2d\u53d1\u73b0\u4e86mysql\u6570\u636e\u5e93root\u5bc6\u7801\u4e22\u5931\u540e\u7684\u6062\u590d\u65b9\u6cd5\uff0c\u4e0d\u6562\u72ec\u4eab\uff0c\u8d21\u732e\u51fa\u6765\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u5e2e\u52a9\u3002<\/p>\n<p>1\u3001\u7ed3\u675f\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u7684mysql\u8fdb\u7a0b\u3002 # killall mysqld<\/p>\n<p>2\u3001\u7528mysql\u5b89\u5168\u6a21\u5f0f\u8fd0\u884c\u5e76\u8df3\u8fc7\u6743\u9650\u9a8c\u8bc1\u3002 # \/usr\/bin\/safe_mysqld &#8211;skip-grant-tables<\/p>\n<p>3\u3001\u4ee5root\u8eab\u4efd\u767b\u5f55mysql\u3002 # mysql -u root<\/p>\n<p>4\u3001\u4fee\u6539root\u7528\u6237\u53e3\u4ee4\u3002 mysql&gt;; use mysql; mysql&gt;; update user set Password = PASSWORD(&#8216;pass&#8217;) where User =&#8217;root&#8217;; Query OK, 2 rows affected (0.02 sec) Rows matched: 2 Changed: 2 Warnings: 0 mysql&gt;;exit<\/p>\n<p>5\u3001\u7ed3\u675fmysql\u5b89\u5168\u6a21\u5f0f\uff0c\u7528\u6b63\u5e38\u6a21\u5f0f\u8fd0\u884cmysql\u3002 # killall mysqld # mysqld 6\u3001\u8bd5\u8bd5\u4f60\u65b0\u4fee\u6539\u7684\u53e3\u4ee4\uff0c\u563f\u563f\u2026\u2026\u5c61\u8bd5\u5c61\u723d\uff01 \u4eca\u5929\u65e0\u4e8b\u5728php.org\u95f2\u901b\uff0c\u65e0\u610f\u4e2d\u53d1\u73b0\u4e86mysql\u6570\u636e\u5e93root\u5bc6\u7801\u4e22\u5931\u540e\u7684\u6062\u590d\u65b9\u6cd5\uff0c\u4e0d\u6562\u72ec\u4eab\uff0c\u8d21\u732e\u51fa\u6765\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u5e2e\u52a9\u3002 1\u3001\u7ed3\u675f\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u7684mysql\u8fdb\u7a0b\u3002 # killall mysqld 2\u3001\u7528mysql\u5b89\u5168\u6a21\u5f0f\u8fd0\u884c\u5e76\u8df3\u8fc7\u6743\u9650\u9a8c\u8bc1\u3002 # \/usr\/bin\/safe_mysqld &#8211;skip-grant-tables 3\u3001\u4ee5root\u8eab\u4efd\u767b\u5f55mysql\u3002 # mysql -u root 4\u3001\u4fee\u6539root\u7528\u6237\u53e3\u4ee4\u3002 mysql&gt;; use mysql; mysql&gt;; update user set Password = PASSWORD(&#8216;pass&#8217;) where User =&#8217;root&#8217;; Query OK, 2 rows affected (0.02 sec) Rows matched: 2 Changed: 2 Warnings: 0 mysql&gt;;exit 5\u3001\u7ed3\u675fmysql\u5b89\u5168\u6a21\u5f0f\uff0c\u7528\u6b63\u5e38\u6a21\u5f0f\u8fd0\u884cmysql\u3002 # killall mysqld # mysqld 6\u3001\u8bd5\u8bd5\u4f60\u65b0\u4fee\u6539\u7684\u53e3\u4ee4\uff0c\u563f\u563f\u2026\u2026\u5c61\u8bd5\u5c61\u723d\uff01 \u4eca\u5929\u65e0\u4e8b\u5728php.org\u95f2\u901b\uff0c\u65e0\u610f\u4e2d\u53d1\u73b0\u4e86mysql\u6570\u636e\u5e93root\u5bc6\u7801\u4e22\u5931\u540e\u7684\u6062\u590d\u65b9\u6cd5\uff0c\u4e0d\u6562\u72ec\u4eab\uff0c\u8d21\u732e\u51fa\u6765\u5e0c\u671b\u5bf9\u5927\u5bb6\u6709\u5e2e\u52a9\u3002<\/p>\n<p>1\u3001\u7ed3\u675f\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u7684mysql\u8fdb\u7a0b\u3002 # killall mysqld<\/p>\n<p>2\u3001\u7528mysql\u5b89\u5168\u6a21\u5f0f\u8fd0\u884c\u5e76\u8df3\u8fc7\u6743\u9650\u9a8c\u8bc1\u3002 # \/usr\/bin\/safe_mysqld &#8211;skip-grant-tables<\/p>\n<p>3\u3001\u4ee5root\u8eab\u4efd\u767b\u5f55mysql\u3002 # mysql -u root<\/p>\n<p>4\u3001\u4fee\u6539root\u7528\u6237\u53e3\u4ee4\u3002 mysql&gt;; use mysql; mysql&gt;; update user set Password = PASSWORD(&#8216;pass&#8217;) where User =&#8217;root&#8217;; Query OK, 2 rows affected (0.02 sec) Rows matched: 2 Changed: 2 Warnings: 0 mysql&gt;;exit<\/p>\n<p>5\u3001\u7ed3\u675fmysql\u5b89\u5168\u6a21\u5f0f\uff0c\u7528\u6b63\u5e38\u6a21\u5f0f\u8fd0\u884cmysql\u3002 # killall mysqld # mysqld<\/p>\n<p>6\u3001\u8bd5\u8bd5\u4f60\u65b0\u4fee\u6539\u7684\u53e3\u4ee4\uff0c\u563f\u563f\u2026\u2026\u5c61\u8bd5\u5c61\u723d\uff01<\/p>\n<p>1\u3001\u7ed3\u675f\u5f53\u524d\u6b63\u5728\u8fd0\u884c\u7684mysql\u8fdb\u7a0b\u3002 # killall mysqld<\/p>\n<p>2\u3001\u7528mysql\u5b89\u5168\u6a21\u5f0f\u8fd0\u884c\u5e76\u8df3\u8fc7\u6743\u9650\u9a8c\u8bc1\u3002 # \/usr\/bin\/safe_mysqld &#8211;skip-grant-tables<\/p>\n<p>3\u3001\u4ee5root\u8eab\u4efd\u767b\u5f55mysql\u3002 # mysql -u root<\/p>\n<p>4\u3001\u4fee\u6539root\u7528\u6237\u53e3\u4ee4\u3002 mysql&gt;; use mysql; mysql&gt;; update user set Password = PASSWORD(&#8216;pass&#8217;) where User =&#8217;root&#8217;; Query OK, 2 rows affected (0.02 sec) Rows matched: 2 Changed: 2 Warnings: 0 mysql&gt;;exit<\/p>\n<p>5\u3001\u7ed3\u675fmysql\u5b89\u5168\u6a21\u5f0f\uff0c\u7528\u6b63\u5e38\u6a21\u5f0f\u8fd0\u884cmysql\u3002 # killall mysqld # mysqld<\/p>\n<p>6\u3001\u8bd5\u8bd5\u4f60\u65b0\u4fee\u6539\u7684\u53e3\u4ee4\uff0c\u563f\u563f\u2026\u2026\u5c61\u8bd5\u5c61\u723d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\u65e0\u4e8b\u5728php.org\u95f2\u901b\uff0c\u65e0\u610f\u4e2d\u53d1\u73b0\u4e86mysql\u6570\u636e\u5e93root\u5bc6\u7801\u4e22\u5931\u540e\u7684\u6062\u590d\u65b9\u6cd5\uff0c\u4e0d\u6562\u72ec\u4eab\uff0c\u8d21\u732e\u51fa\u6765\u5e0c\u671b [&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-802","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts\/802","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=802"}],"version-history":[{"count":1,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts\/802\/revisions"}],"predecessor-version":[{"id":803,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=\/wp\/v2\/posts\/802\/revisions\/803"}],"wp:attachment":[{"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=802"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=802"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kumouse.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=802"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}