1.情况如下:

MySQL8.0登录提示caching_sha2_password_mysql

 

解决:

通过cmd登录mysql

MySQL8.0登录提示caching_sha2_password_mysql_02

 

修改plugin方式:xxxxx为自己的密码

ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY 'xxxxx';

MySQL8.0登录提示caching_sha2_password_mysql_03

 

连接成功:

MySQL8.0登录提示caching_sha2_password_mysql_04