{"id":220,"date":"2019-07-25T17:43:53","date_gmt":"2019-07-25T09:43:53","guid":{"rendered":"https:\/\/wp.dj47.top\/?p=220"},"modified":"2021-10-20T16:17:16","modified_gmt":"2021-10-20T08:17:16","slug":"php%e8%bf%9e%e6%8e%a5%e6%95%b0%e6%8d%ae%e5%ba%93%e6%8a%a5%e9%94%99%ef%bc%9athe-server-requested-authentication-method-unknown-to-the-client","status":"publish","type":"post","link":"https:\/\/www.djlog.cn\/?p=220","title":{"rendered":"PHP\u8fde\u63a5\u6570\u636e\u5e93\u62a5\u9519\uff1aThe server requested authentication method unknown to the client"},"content":{"rendered":"<p>SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client<\/p>\n<p>\u53d1\u751f\u8fd9\u79cd\u9519\u8bef\uff0c\u662f\u7531\u4e8eMySQL 8\u9ed8\u8ba4\u4f7f\u7528\u4e86\u65b0\u7684\u5bc6\u7801\u9a8c\u8bc1\u63d2\u4ef6\uff1acaching_sha2_password\u3002<\/p>\n<p>\u6211\u4eec\u53ea\u9700\u8981\u5728my.ini\u00a0\u91cc\u52a0\u4e0a\u9ed8\u8ba4\u5bc6\u7801\u9a8c\u8bc1\u63d2\u4ef6\u4e3a\uff0cLinux\u4e3a\u00a0\/etc\/my.cnf<\/p>\n<div class=\"line number1 index0 alt2\"><code class=\"sql plain\"><span style=\"color: #ff0000; font-family: arial, helvetica, sans-serif;\">default_authentication_plugin = mysql_native_password<\/span> \/\/\u6dfb\u52a0\u6b64\u5c31\u53ef\u4ee5\u89e3\u51b3<\/code><\/div>\n","protected":false},"excerpt":{"rendered":"<p>SQLSTATE[HY000] [2054] The server requested authenticat [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"class_list":["post-220","post","type-post","status-publish","format-standard","hentry","category-mysql"],"_links":{"self":[{"href":"https:\/\/www.djlog.cn\/index.php?rest_route=\/wp\/v2\/posts\/220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.djlog.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.djlog.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.djlog.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.djlog.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=220"}],"version-history":[{"count":0,"href":"https:\/\/www.djlog.cn\/index.php?rest_route=\/wp\/v2\/posts\/220\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.djlog.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.djlog.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.djlog.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}