{"id":628,"date":"2016-07-05T16:43:41","date_gmt":"2016-07-05T08:43:41","guid":{"rendered":"http:\/\/www.withonly.com\/?p=628"},"modified":"2016-07-05T16:48:30","modified_gmt":"2016-07-05T08:48:30","slug":"%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%b3%bb%e7%bb%9f%e5%8d%87%e7%ba%a7","status":"publish","type":"post","link":"https:\/\/blog.5danyuan.com\/?p=628","title":{"rendered":"\u670d\u52a1\u5668\u7cfb\u7edf\u5347\u7ea7"},"content":{"rendered":"<p>\u5728\u5f88\u4e45\u524d\u8863\u670d\u81ea\u5df1\u6d17\u4f7f\u7528phpmyadmin\u7684\u65f6\u5019\uff0c\u9875\u9762\u4e0a\u603b\u63d0\u793amysql\u7684\u7248\u672c\u592a\u65e7\u4e86\u4e0d\u8ba9\u4f7f\u7528\u3002\u4f46\u53d1\u73b0mysql\u4e5f\u6ca1\u6709\u4e00\u79cd\u6bd4\u8f83\u597d\u7684\u5347\u7ea7\u65b9\u5f0f\uff0c\u5b9e\u5728\u662f\u592a\u60b2\u50ac\u4e86\u3002\u5f53\u65f6\u5c31\u653e\u5728\u90a3\u91cc\u4e86\uff0c\u4e5f\u4e00\u76f4\u6ca1\u6709\u7ba1\u3002<\/p>\n<p>\u524d\u4e0d\u4e45Ubuntu 16.04 \u53d1\u5e03\u4e86\uff0c\u6211\u8fd8\u5bfb\u601d\u7740\u8981\u4e0d\u8981\u7ed9\u5347\u7ea7\u4e0b\u7cfb\u7edf\uff0c\u8bb0\u5f97\u4ee5\u524d\u5347\u7ea7\u523014.04\u7684\u65f6\u5019\uff0c\u5728\u540e\u53f0\u754c\u9762\u4e0a\u5c31\u6709\u6309\u94ae\u53ef\u4ee5\u4e00\u952e\u5347\u7ea7\u3002\u73b0\u5728\u53cd\u800c\u6ca1\u6709\u4e86\uff0c\u901a\u8fc7\u5b98\u65b9\u7684FAQ\u5f15\u5bfc\u8fd0\u884c\u547d\u4ee4\u8c8c\u4f3c\u603b\u662f\u51fa\u9519\u4e2d\u65ad\u3002<\/p>\n<p>\u6211\u8fd9\u4e00\u6012\u4e4b\u4e0b\uff0c\u5c31\u628a\u670d\u52a1\u5668\u683c\u5f0f\u5316\u4e86\uff0c\u91cd\u65b0\u5b89\u88c5\u4e86Ubuntu 16.04\uff0c\u5e72\u8106\u5f7b\u5e95\u3002\u867d\u7136\u8fd9\u4e2a\u8fc7\u7a0b\u4e5f\u662f\u6162\u6162\u5730\u6478\u7d22\u7684\uff0c\u5927\u4e0d\u4e86\u7f51\u7ad9\u5168\u90e8\u63a8\u5012\u91cd\u6765\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u5c31\u6309\u7167<a href=\"http:\/\/imcn.me\/html\/y2016\/26575.html\">\u8fd9\u4e2a\u5e16\u5b50<\/a>\u91cc\u7684\u5185\u5bb9\u5b89\u88c5\u4e86nginx,php,mysql\u3002phpmyadmin \u518d\u4e5f\u4e0d\u4f1a\u63d0\u793a\u6211\u7248\u672c\u8fc7\u65e7\u4e86\uff0c\u53e6\u5916php7 \u6211\u4e5f\u5b89\u88c5\u4e0a\u4e86\uff0c\u5e78\u597d\u662fubuntu 16.04\uff0c\u4e0d\u7136\u8fd8\u5f97\u7f16\u8bd1\u5b89\u88c5\u3002\u81e3\u59be\u4e0d\u4f1a\uff0c\u505a\u4e0d\u5230\u554a\u3002<\/p>\n<p>\u5fd8\u8bb0\u4e86mysql\u5bc6\u7801\u4e86\uff0c\u597d\u5728\u4e0b\u9762\u7684\u4ee3\u7801\u53ef\u4ee5\u89e3\u51b3\uff1a<\/p>\n<blockquote><p># \/etc\/init.d\/mysql stop<br \/>\n# mysqld_safe &#8211;user=mysql &#8211;skip-grant-tables &#8211;skip-networking &amp;<br \/>\n# mysql -u root mysql<br \/>\nmysql&gt; UPDATE user SET authentication_string=PASSWORD(\u2019newpassword\u2019) where USER=\u2019root\u2019;<br \/>\nmysql&gt; FLUSH PRIVILEGES;<br \/>\nmysql&gt; quit<br \/>\n# \/etc\/init.d\/mysql restart<br \/>\n# mysql -uroot -p<br \/>\nEnter password: &lt;\u8f93\u5165\u65b0\u8bbe\u7684\u5bc6\u7801newpassword&gt;<br \/>\nmysql&gt;<\/p><\/blockquote>\n<p>\u6ce8\u610f\u8fd9\u91cc\u65b0\u7248\u672c\u7684mysql \u5df2\u7ecf\u66ff\u6362 Password \u5217\u540d\u4e3a authentication_string \u4e86\u3002<\/p>\n<p>\u4fee\u6539\u7528\u6237\u7684Host\u5217\u503c\u4e3a % \u4ee5\u652f\u6301\u8fdc\u7a0b\u8bbf\u95ee\uff0clocalhost\u5f31\u66b4\u4e86\u3002\u4f46\u662f\u53d1\u73b0\u8fd8\u662f\u65e0\u6cd5\u8fdc\u7a0b\u8bbf\u95ee\u3002<\/p>\n<p>\u9996\u5148\u67e5\u770b\u7aef\u53e3\u662f\u5426\u6253\u5f00 netstat -an|grep 3306\uff0c\u6253\u5f00mysql\u914d\u7f6e\u6587\u4ef6vi \/etc\/mysql\/mysql.conf.d\/mysqld.cnf\uff0c\u5c06bind-address = 127.0.0.1\u6ce8\u91ca\u6389\u3002\u91cd\u542f\u7cfb\u7edf\u3002\u8fd9\u6b21\u518d\u770b\u770b\u7aef\u53e3\u5e94\u8be5\u662f\u5df2\u7ecf\u53ef\u4ee5\u4e86\uff0c\u4e5f\u5e94\u8be5\u53ef\u4ee5\u8fdc\u7a0b\u8fde\u63a5\u4e86\u3002<\/p>\n<p>\u8fd8\u539f\u6570\u636e\u5e93\uff0c\u4e0a\u4f20\u6587\u4ef6\u5939\uff0c\u7ec8\u4e8e\u53ef\u4ee5\u770b\u5230\u719f\u6089\u7684\u6587\u7ae0\u9875\u9762\u4e86\u3002<\/p>\n<p>\u81f3\u6b64\uff0c\u670d\u52a1\u5668\u7cfb\u7edf\u5347\u7ea7\u5b8c\u6210\u3002\u611f\u89c9\u670d\u52a1\u5668\u88ab\u6211\u6d6a\u8d39\u4e86\uff0c\u5c31\u8dd1\u4e00\u4e2a\u7f51\u7ad9\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u5f88\u4e45\u524d\u8863\u670d\u81ea\u5df1\u6d17\u4f7f\u7528phpmyadmin\u7684\u65f6\u5019\uff0c\u9875\u9762\u4e0a\u603b\u63d0\u793amysql\u7684\u7248\u672c\u592a\u65e7\u4e86\u4e0d\u8ba9\u4f7f\u7528\u3002\u4f46\u53d1\u73b0mysql [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[272,191,271],"class_list":["post-628","post","type-post","status-publish","format-standard","hentry","category-daily","tag-php","tag-ubuntu","tag-271"],"_links":{"self":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/628","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=628"}],"version-history":[{"count":0,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=\/wp\/v2\/posts\/628\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=628"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=628"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.5danyuan.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=628"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}