错误:Client does not support authentication protocol requested by server; consider upgrading MySQL client
客户端不支持服务器请求的认证协议;考虑升级MySQL客户端
- 先登录:
mysql -u root -p
#接着输入你的密码
- 解决办法:
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '你的密码';
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码';
SELECT plugin FROM mysql.user WHERE User = 'root';