客户端连接MySQL出现如下异常:
Client does not support authentication protocol requested by server; consider upgrading MySQL client
解决方法如下:
USE mysql;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Root@2019';
FLUSH PRIVILEGES;
说明:
root是用户名,localhost是ip地址127.0.0.1都是特指本机,mysql_native_password是旧的密码验证机制,Root@2019是密码,最后别忘了分号