QLSTATE[HY000] [2054] The server requested authentication method unknown to the client

COS、CDN
wdzsjl 2周前 (01-01) 阅读数 32 #Typecho

问题描述:thinkphp连接mysql,报如下错误

QLSTATE[HY000] [2054] The server requested authentication method unknown to the client

解决方法:首先参照mysql8修改加密规则,然后在mysql服务器配置文件的[mysqld]下面添加

default_authentication_plugin=mysql_native_password
COS、CDN
热门