MySQL connectivity error unable to retrieve list of database - mysql

I am trying to connect visual studio to MySQL and get the following error.I looked it up online but couldn't find a solution. Here is the picture of error.

caching_sha2_password is the new default authentication algorithm for MySQL 8.0.4.
In order to connect to a server using that algorithm, you also need your client compiled against a compatible libmysqlclient. I guess the Visual Studio tooling hasn't been upgraded yet.
First I'd try to install the newest Connector/.NET, starting with 8.0.11:
Changes in MySQL Connector/Net 8.0.11 (2018-04-19, General Availability)
Support was added for the new caching_sha2_password padding mechanism introduced in the MySQL 8.0 release series
If that doesn't work, downgrade the authentication for that user, for example to mysql_native_password:
ALTER USER 'root'#'localhost' IDENTIFIED WITH mysql_native_password BY '$yourPasswordHere';

[SOLVED]
Well finally I downloaded the previous version of MySQL which is 5.7.22. After that I downloaded MySQL.Data and MySQL DLLs from nuGet then connected visual studio 2017 with MySQL then it established a successful connection.
Before installing previous version of MySQL you must uninstall currently installed MySQL. Hope it helps someone who is facing the same issue.

Related

Mysql 8.0.29 installation failed

The installation failed at this point
I have already installed Microsoft Visual Studio c++ 2019.
I already uninstalled and delete all the hidden folders.
I read that for someone the solution was to turn off Windows firewall, I already tried it.
I also checked multiple videos of how to install MySQL, but they have the same steps, just a different voice.
Any suggestions?
Check some log information.
When you uninstall mysql, you should delete the relevant information about mysql in the registry.
3.install .net 4.5.2+

Using Windows MySQL Workbench 8.0 with Mariadb and PAM authentication

I'm currently attempting to get the latest version of MySQL Workbench for Windows to connect to Mariadb v 5.6.10 running on CentOS. With a user authenticated using MySQL's built-in authentication, I can connect fine (I get an incompatibility message, but I can still connect and run queries), but if I try to connect using a PAM-authenticated user, it complains about a missing DLL:
Authentication plugin 'dialog' cannot be loaded.
With procmon, I was able to determine that it is looking for C:\Program Files\MySQL\MySQL Server 8.0\lib\plugin\dialog.dll
Under the pre-8 versions of MySQL Workbench, you could simply extract the DLL from the Windows MariaDB distribution and copy it to the appropriate directory, but this doesn't work with Workbench 8.0 (I tried with the latest Mariadb Windows distribution and it complained about an API incompatibility with the version of dialog.dll I copied in). Are there any DLLs that will allow this to work? Any other workaround?
An alternative is to change the sever configuration and force the client to use mysql_clear_password instead of dialog. However this will not work if PAM service requires multiple questions or challenge-responses.
[mariadb]
....
pam_use_cleartext_plugin

Issue with authentication plugin for MySQL Enterprise Edition

I have installed a trial of the MySQL Enterprise Edition and when connecting using the bundled Workbench software i get the following error:
Authentication plugin caching_sha2_password cannot be loaded: The specified module cannot be found
About which there i can find very little information. Most solutions return to the old authentication method, but I don't want to do that, and it doesn't seem to work anyway...
HeidiSQL gives the same error message.
Any suggestions?
I found a workaround in the HeidiSQL Github repository:
https://github.com/HeidiSQL/HeidiSQL/issues/163
I fixed by copying libmysql.dll from my last MySql install to my HeidiSQL folder.

Connector/net does not support server versions prior to 5.0 after downgrading connector/net and mysql server version

Hi I believe there have been some similar topics regarding connector/ net not supporting server versions prior to 5.0.
I have been trying add in a connection to a database in visual studio 2013 and I am not able to connect due to the server version being 4.1.2 I am unable to upgrade this databases server as its out of my hands.
What I have done is follow the suggested answers which is downgrade the connector/ net prior to 5.0 and downgrade the mysql server to 4.1.
I have added in the reference and its still giving me the same error.
Can anyone suggest anything else I could try or may be missing?
Cheers guys I'm pretty desperate now!!
See MySQL Connector/Net Developer Guide - Connector/Net Versions. This document contains table that shows the .NET Framework version required, and the MySQL Server version supported by Connector/Net.
For MySQL Server 4.1 you may need to install Connector/NET v. 6.2 and .NET Framework 2.x
what you must do is, install a lower NuGet that supports the version you have of maria db, in my case, I install the MySql.Data.EntityFramework 8.0.11 and it will work without problem.

How to get MySQL server working after OSX Yosemite upgrade?

After I upgraded my Mac from Mavericks OSX to Yosemite, my local Apache and MySQL server setup did not work anymore. Thanks to Apache localhost/~username/ not working I just got the Apache server working but my Joomla application now indicates it can't access the MySQL database; neither can the Phpmyadmin tool.
How to fix this? I've seen instructions for installing MySQL for Yosemite (https://www.computersnyou.com/3376/setup-apache-php-mysql-macosx-10-10-yosemite/) but I'm not sure whether that's the best way forward as my Joomla application still needs to access the existing MySQL db information? E.g., I don't want to lose my existing saved database info of various web applications....
If you had a working native version of mysql working on Mavericks, the mysql preference pane should be still visible in the preferences, just click on the preference pane and start mysql.
Only problem is that mysql does not auto-start on boot, this can be solved by following these steps: https://stackoverflow.com/a/26465743/580173
Just Start MySQL Server! It worked for me.