Visual Studio - Failed to link MySql database table to DataSet

前端 未结 3 1111
遥遥无期
遥遥无期 2020-12-20 02:06

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:

相关标签:
3条回答
  • 2020-12-20 02:48

    This worked, except I had to install 1.2.7 before I could get MYSQL to show up as an option as data provider.

    0 讨论(0)
  • 2020-12-20 02:54

    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.

    0 讨论(0)
  • 2020-12-20 03:01

    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.

    0 讨论(0)
提交回复
热议问题