这里是文章模块栏目内容页
[MySQL]SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client ———————————————— 版权声明:本文为CSDN博主「Balmunc」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/Balmunc/article/details/124162939

问题描述:


[PDOException]

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


[PDOException]

PDO::__construct(): The server requested authentication method unknown to the client [caching_sha2_password]


解决方法:


alter user 'root'@'%' identified with mysql_native_password by '123456';

flush privileges;

————————————————

版权声明:本文为CSDN博主「Balmunc」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

原文链接:https://blog.csdn.net/Balmunc/article/details/124162939


更多栏目
相关内容