When I try to drag a MySQL table to a DataSet after successfully adding a connection to a database in Server Explorer, I receive two error messages, one after the other:
This worked, except I had to install 1.2.7 before I could get MYSQL to show up as an option as data provider.
I found the solution. After hours and hours of tinkering I found out that the current versions of MySql-for-visual-studio and MySqlConnector/Net have a bug, which can only be fixed by unninstalling those and installing MySQL-for-visual-studio-1.2.6.msi
and MySqlConnector-6.9.8.msi
, exactly in this order.
in my case the error statement was "you have a usable connection already" rather than "Unexpected Error" when adding a table as a data source, the above solution with MySql for VS 1.2.7 and MySql .net connector 6.9.8 worked for me as well. these need to be installed in the exact order as mentioned above. I'm using VS2017 15.9.11.