任何可用插件都不支持身份验证方法“caching_sha2_password" [英] Authentication method 'caching_sha2_password' not supported by any of the available plugins

查看:58
本文介绍了任何可用插件都不支持身份验证方法“caching_sha2_password"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试将 MySQL (8.0) 数据库与 Visual Studio 2018 连接时,我收到此错误消息

When I try to connect MySQL (8.0) database with Visual Studio 2018 I get this error message

任何可用插件都不支持身份验证方法'caching_sha2_password'"

"Authentication method 'caching_sha2_password' not supported by any of the available plugins"

我也无法检索数据库名称.我使用 mysql-for-visualstudio-1.2.7mysql-connector-net-8.0.11 进行连接.有什么办法可以解决.

Also I am unable to retrieve Database name. I use mysql-for-visualstudio-1.2.7 and mysql-connector-net-8.0.11 for connection. Is there any possible way to fix it.

推荐答案

我在尝试将客户端计算机连接到服务器时遇到了同样的错误.我必须连接到服务器上托管的 MySQL 服务器.我已经开始工作了.遵循以下步骤:

I faced the same error while i was trying to connect my client machine to the Server. I had to connect to MySQL server hosted on the Server. I have got this to working. Followed the following steps:

  1. 下载最新的 MySQL 社区版本,即安装的 8.0.18.0.确保在服务器机器上安装了相同版本的 MySQL.请注意,客户端计算机和服务器计算机上安装相同版本的 MySQL,否则客户端计算机应安装更高版本的 MySQL.
  2. 在 MySQL 安装程序的帮助下,确保您在客户端计算机上安装了开发人员"版本,以便在其中安装 MySQL 服务器、SQL.net、mySQL for Visual Studio 等.
  3. 我们在最新的 MySQL 社区中使用 .Net framework 4.5.2.因此,请确保您使用 Visual Studio 2019.在 Visual Studio 2019 中构建 UiConfigEDItor 源代码,以便支持更高版本的 .Net framework 4.5.
  4. 现在,将所有文件(尤其是 mysqlData.dll)从 SQL 安装的工作区(C:Program Files (x86)MySQLConnector NET 8.0Assembliesv4.5.2)复制到 Visual Studio 2019 工作区(C:程序文件 (x86)Microsoft Visual Studio2019ProfessionalCommon7IDE).
  5. 注销您的计算机,现在在 Visual Studio 2019 中打开 UIConfigEditor 源代码.

现在在解决方案探索->参考->添加参考->转到程序集 tsb->扩展->搜索 mysql.data.dll(确保它在那里)->检查该选项.请注意,本例中 mysql.data.dll 的版本为 8.0.18.0.

Now in Solution Explore->References->Add References->Go to Assemblies tsb-> Extensions->Search for mysql.data.dll(make sure that its there)->check that option. Please note that mysql.data.dll is of version 8.0.18.0 in this case.

这篇关于任何可用插件都不支持身份验证方法“caching_sha2_password"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆