先查看所有的数据库找到mysql库
将 mysql库 下的 user表 的 **root用户(User字段)**的 plugin字段值
由 caching_sha2_password–>mysql_native_password
update user set plugin='mysql_native_password' where User = 'root';
先查看所有的数据库找到mysql库
将 mysql库 下的 user表 的 **root用户(User字段)**的 plugin字段值
由 caching_sha2_password–>mysql_native_password
update user set plugin='mysql_native_password' where User = 'root';