Visual Studio - Failed to link MySql database tabl

2019-02-20 02:31发布

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:

"Some updating commands could not be generated automatically. The database returned the following error: Unexpected error."

"Mouse drag operation failed. Could not retrieve schema information for table or view."

Based on answers for similiar problems, I reinstalled 'MySqlConnector/Net' and 'MySql for Visual Studio', and the same problem persists. I would like to know what is going wrong.

2条回答
小情绪 Triste *
2楼-- · 2019-02-20 03:08

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.

查看更多
孤傲高冷的网名
3楼-- · 2019-02-20 03:13

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

查看更多
登录 后发表回答