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

在这里插入图片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章