简体   繁体   中英

MySql Visual Studio 2017 (Error: You have a usable connection already)

I'm using Visual Studio 2017 and these are the errors I encountered when I drag my table to the dataset :

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

You have a usable connection already.

在此处输入图片说明

Mouse drag operation failed.

Could not retrieve schema information for table or view access_rights ..

在此处输入图片说明

This is my setup currently installed:

  • MySQL Connector C++ 8.0
  • MySQL Connector J
  • MySQL Connector Net 8.0.15
  • MySQL Connector/ODBC 8.0
  • MySQL Documents 8.0
  • MySQL Examples and Samples 8.0
  • MySQL for Visual Studio 1.2.8
  • MySQL Installer - Community
  • MySQL Router 8.0
  • MySQL Server 8.0
  • MySQL Shell 8.0.15
  • MySQL Workbench 8.0 CE

I already tried this:

  • Visual Studio 2017 (Community, Professional, and Enterprise):

    MySQL for Visual Studio 1.2.8 or 2.0.5 with Connector/NET 6.9.8

I already solve this i saw a random answer from another website

Important

Uninstall both Mysql for VS and Connector/net and you must first install Mysql for VS before connector/net

and it works properly now

I was struggling with this for hours. I used the advice in another 2015 VS post.

Uninstalled MySQL Connector Net and MySQL for Visual Studio

Installed MySQL Connector Net 6.9.8

Installed MySQL for Visual Studio 1.2.7

And it worked after that. I think it is important to install the connector before the visual studio. The latest version are not friendly and you need to downgrade.

Job Fine for me in Visual Studio 2019:

Uninstall MySQL Connector Net and MySQL for Visual Studio

Installed MySQL Connector Net 8.0.19 (Install this first)

Installed MySQL for Visual Studio 1.2.9 (Install last)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM