{"id":709,"date":"2020-06-13T11:05:51","date_gmt":"2020-06-13T03:05:51","guid":{"rendered":"https:\/\/www.dd-home.top\/?p=709"},"modified":"2020-06-13T11:05:51","modified_gmt":"2020-06-13T03:05:51","slug":"ubuntu-%e4%b8%8bmysql-%e5%ae%89%e8%a3%85%e6%97%b6%e5%af%86%e7%a0%81%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.dd-home.top\/?p=709","title":{"rendered":"Ubuntu \u4e0bMysql \u5b89\u88c5\u65f6\u5bc6\u7801\u95ee\u9898"},"content":{"rendered":"<p>1.\u5b89\u88c5\u4ee5\u540e\u6ca1\u6709\u8bbe\u7f6e\u5bc6\u7801<\/p>\n<pre class=\"has\" name=\"code\"><code class=\"hljs\">sudo cat \/etc\/mysql\/debian.cnf<\/code><\/pre>\n<p>\u901a\u8fc7\u8fd9\u4e2a\u67e5\u770bmysql\u7684\u9ed8\u8ba4\u7528\u6237\u540d\u548c\u5bc6\u7801<\/p>\n<pre class=\"\"># Automatically generated for Debian scripts. DO NOT TOUCH!\n[client]\nhost     = localhost\nuser     = debian-sys-maint\npassword = cOrWdhKDBv7LS86s\nsocket   = \/var\/run\/mysqld\/mysqld.sock\n[mysql_upgrade]\nhost     = localhost\nuser     = debian-sys-maint\npassword = cOrWdhKDBv7LS86s\nsocket   = \/var\/run\/mysqld\/mysqld.sock\n<\/pre>\n<p>2.\u6b63\u5e38\u767b\u5f55mysql\uff0c\u4fee\u6539\u5bc6\u7801<\/p>\n<pre class=\"lang:mysql decode:true\"> alter user'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root';\n flush privileges;<\/pre>\n<p>3.\u91cd\u65b0\u767b\u9646\u5373\u53ef<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5b89\u88c5\u4ee5\u540e\u6ca1\u6709\u8bbe\u7f6e\u5bc6\u7801 sudo cat \/etc\/mysql\/debian.cnf \u901a\u8fc7\u8fd9\u4e2a\u67e5\u770bmysql &hellip; <a href=\"https:\/\/www.dd-home.top\/?p=709\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">Ubuntu \u4e0bMysql \u5b89\u88c5\u65f6\u5bc6\u7801\u95ee\u9898<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31],"tags":[],"class_list":["post-709","post","type-post","status-publish","format-standard","hentry","category-sql"],"_links":{"self":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts\/709","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=709"}],"version-history":[{"count":0,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=\/wp\/v2\/posts\/709\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=709"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=709"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dd-home.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=709"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}