Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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

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

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.

like image 961
vikash vishnu Avatar asked Apr 29 '18 15:04

vikash vishnu


People also ask

Is the 'caching_sha2_password' authentication method supported by any plugins?

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

Is it possible to use caching_sha2_password in Power BI Community?

- Microsoft Power BI Community MySQL: Authentication method 'caching_sha2_password' not supported by any of the available plugins 07-16-2019 03:53 AM We had to change the Server of our database. It now runs on another MySQL Version.

What is the difference between caching_sha2_password and MySQL_native_password?

In MySQL 8.0, caching_sha2_password is the default authentication plugin rather than mysql_native_password. You're using mysql_native_password, which is no longer the default. Assuming you're using the correct connector for your version you need to specify the auth_plugin argument when instantiating your connection object

How to change default authentication plugin in MySQL 8?

In MySQL 8.0, caching_sha2_password is the default authentication plugin rather than mysql_native_password. 1. Simply change the default authentication plugin to mysql_native_password as shown below. 2. Execute the below command in mysql command line. If plugin column changed to mysql_native_password, then everything is fine.


2 Answers

1st

Modify the MySql Server:

  1. Open MySQL Installer - Community
  2. Select Product MySQL Server
  3. Click on Quick configure in last column
  4. Click on next untill you will not point to Authentication method
  5. On Authentication method tab- select Use Legacy Authentication method
  6. Click on next and finish

Now you can login with normal password

2nd

If you are using .net framework 4.5.2 you can easy upgrade reference of MySQL.Data:

  1. Visulastudio> Tools> Nuget Package Manager>Manage nuget package for solution
  2. Go to Browse tab, Write Search textbox mysql and enter first mysql.data package will come, install it

Now login, issue will resolved

like image 82
Sameer Bahad Avatar answered Sep 18 '22 05:09

Sameer Bahad


This is a new authentication method used in MySQL version 8.0 as compared to mysql_native_password, which is the legacy method. In order to make this work, you will need to upgrade your MySQL Client library to version 8.0.

So, use the following link and get the version 8.0.11 or higher.

https://dev.mysql.com/downloads/connector/net/

like image 33
SolutionGuy Avatar answered Sep 20 '22 05:09

SolutionGuy