🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
SQLSTATE\[HY000\] \[2054\] The server requested authentication method unknown to the client 这是因为mysql8.0的默认密码加密验证是`caching_sha2_password` 而`PHP`尚不了解caching_sha2_password,请尝试`mysql_native_password`。 ``` # 旧版 ALTER USER 'root'@'localhost' IDENTIFIED BY ':mysql_vagrant_2020~'; > ALTER USER 'root'@'localhost' IDENTIFIED with mysql_native_password BY ':mysql_vagrant_2020~'; > FLUSH PRIVILEGES; ```