问题描述:
[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;