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.
"Authentication method 'caching_sha2_password' not supported by any of the available plugins."
- 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.
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
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.
1st
Modify the MySql Server:
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:
Now login, issue will resolved
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/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With