﻿{"id":1481,"date":"2020-04-08T15:09:53","date_gmt":"2020-04-08T07:09:53","guid":{"rendered":"https:\/\/www.tansoo.cn\/?p=1481"},"modified":"2020-04-08T15:09:53","modified_gmt":"2020-04-08T07:09:53","slug":"phpbb-19","status":"publish","type":"post","link":"https:\/\/www.tansoo.cn\/?p=1481","title":{"rendered":"MySql8.0\u4fee\u6539root\u5bc6\u7801"},"content":{"rendered":"<p>\u5728MySQL 8.04\u524d\uff0c\u6267\u884c\uff1aSET PASSWORD=PASSWORD(\u2018[\u65b0\u5bc6\u7801]\u2019);\u4f46\u662fMySQL8.0.4\u5f00\u59cb\uff0c\u8fd9\u6837\u9ed8\u8ba4\u662f\u4e0d\u884c\u7684\u3002\u56e0\u4e3a\u4e4b\u524d\uff0cMySQL\u7684\u5bc6\u7801\u8ba4\u8bc1\u63d2\u4ef6\u662f\u201cmysql_native_password\u201d\uff0c\u800c\u73b0\u5728\u4f7f\u7528\u7684\u662f\u201ccaching_sha2_password\u201d\u3002<br \/>\n\u73b0\u5728\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u7684\u65b9\u6cd5\u53bb\u4fee\u6539root\u5bc6\u7801<\/p>\n<div class=\"codebox_plus_wrap\">\n<div class=\"codebox_plus_header\"><strong>Code: <\/strong><a href=\"#\" onclick=\"codebox_plus_select(this, 1); return false;\">[\u5168\u9009]<\/a>&nbsp;<a href=\"#\" onclick=\"codebox_plus_toggle(this, 1); return false;\">[Expand\/Collapse]<\/a><\/div>\n<div>\n<div style=\"display: inline;\">\n<div class=\"mysql\" style=\"font-family:monospace;\">\n<ol>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #990099; font-weight: bold;\">use<\/span> mysql\uff1b<\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\"><span style=\"color: #990099; font-weight: bold;\">ALTER<\/span> <span style=\"color: #000099;\">USER<\/span> <span style=\"color: #008000;\">&#8216;root&#8217;<\/span>@<span style=\"color: #008000;\">&#8216;localhost&#8217;<\/span> IDENTIFIED <span style=\"color: #990099; font-weight: bold;\">WITH<\/span> mysql_native_password BY <span style=\"color: #008000;\">&#8216;\u65b0\u5bc6\u7801&#8217;<\/span><span style=\"color: #000033;\">;<\/span><\/div>\n<\/li>\n<li style=\"margin-left:20px;\">\n<div style=\"border-bottom: dotted 1px #cccccc;\">FLUSH <span style=\"color: #990099; font-weight: bold;\">PRIVILEGES<\/span><span style=\"color: #000033;\">;<\/span><\/div>\n<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"codebox_plus_footer\">GeSHi &copy; Codebox Plus Extension<\/div>\n<\/div>\n<p><small>\u539f\u6587\u4f5c\u8005: BG6RSH | <a href=\"https:\/\/bbs.tansoo.cn\/viewtopic.php?t=19\" target=\"_blank\" rel=\"noopener\">\u67e5\u770b\u539f\u5e16<\/a><\/small><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728MySQL 8.04\u524d\uff0c\u6267\u884c\uff1aSET PASSWORD=PASSWORD(\u2018[ &hellip; <a href=\"https:\/\/www.tansoo.cn\/?p=1481\">\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":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105],"tags":[],"class_list":["post-1481","post","type-post","status-publish","format-standard","hentry","category-105"],"_links":{"self":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts\/1481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1481"}],"version-history":[{"count":0,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=\/wp\/v2\/posts\/1481\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tansoo.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}