mysql 8.0 报错解决 authentication protocol requested by server; consider upgrading MySQL

错误:

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 '你的密码';

 

你可能感兴趣的:(mysql,linux)