Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
749 views
in Technique[技术] by (71.8m points)

mysql - 'You have a usable connection already' error in Visual Studio 2015 adding Data Source

Visual Studio 2015; Windows 10;

In the Data Source Configuration Wizard, trying to add a table from a MySQL install on the network. I get up to this step

enter image description here

When I click 'Finish', I then get this error message:

enter image description here

Other SO posts refer to this issue, none are resolved. This is a fresh WinForms project, there is no code written.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I found a workaround on the MySQL Connector forums (http://forums.mysql.com/read.php?174,648619,649199#msg-649199)

Basically, you want to use Connector 6.9.8, not 6.9.9. So uninstall 6.9.9, install 6.9.8 from https://downloads.mysql.com/archives/c-net/

You can keep using MySQL 1.2.6 for Visual Studio. I will add this note:

Important

Always install MySQL for Visual Studio before installing MySQL Connector/Net.

From: https://dev.mysql.com/doc/visual-studio/en/visual-studio-install.html#Requirements in case you are reinstalling everything.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...