【已解决】Authentication method 'caching_sha2_password' not supported by any of the available plugins

通过vs链接mysql时,出现了该错误

  • 这个问题的根本其实就是登陆加密的规则不一样,导致用户验证如法通过。

解决方法:

  • 找到安装目录的my.ini配置文件,在[mysqld]下添加配置语句:
  • default_authentication_plugin=mysql_native_password
  • 然后Win+R:打开cmd界面,重启mysql【一定要重启服务】
  • 运行 net stop mysql
  • 然后 net start mysql
    【已解决】Authentication method 'caching_sha2_password' not supported by any of the available plugins

【已解决】Authentication method 'caching_sha2_password' not supported by any of the available plugins