版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/mmm333zzz/article/details/82461910
错误:
Client does not support authentication protocol requested by server; consider upgrading MySQL client
先登录:
mysql -u root -p
解决:
ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '你的密码';
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '你的密码';