mysql Authentication plugin 'caching_sha2_password' is not supported问题处理

使用mysql8.0版本,登录失败,提示 Authentication plugin 'caching_sha2_password' is not supported。

原因是在MySQL 8.0以后,默认的密码加密方式是caching_sha2_password而不是mysql_native_password。

解决方法:

1.登录mysql数据库 mysql -u root -p

2.更新身份认证方式 ALTER USER '你的用户名' IDENTIFIED WITH mysql_native_password BY '你的用户密码';

猜你喜欢

转载自www.cnblogs.com/kerwincui/p/12960298.html
今日推荐