【已解决】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
    在这里插入图片描述

在这里插入图片描述

发布了190 篇原创文章 · 获赞 298 · 访问量 48万+

猜你喜欢

转载自blog.csdn.net/qq_34202873/article/details/105491749