Authentication method 'caching_sha2_password' not supported by any of the av的解决方法

Authentication method 'caching_sha2_password' not supported by any of the av的意思是任何av都不支持身份验证方法“缓存密码”

通常的报这个错误是因为它的身份验证方式是  mysql_native_password 方式,不是caching_sha2_password方式

这里我是用Navicat Premium 12去改的

1、连接数据库后,选择点击工具后再点击命令列界面

 2、输入命令查看用户身份验证方式:SELECT Host, User, plugin from user;

 3、修改某个用户账号的身份验证方式:ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '12345';

4、 再去查看一下是否已经更改了

猜你喜欢

转载自www.cnblogs.com/Loners/p/12347273.html