How to connect to a MySQL Data Source in Visual Studio
Solution 1:
install the MySQL .NET Connector found here http://dev.mysql.com/downloads/connector/net/
Solution 2:
"Starting with version 6.7, Connector/Net will no longer include the MySQL for Visual Studio integration. That functionality is now available in a separate product called MySQL for Visual Studio available using the MySQL Installer for Windows."
Source: http://dev.mysql.com/downloads/connector/net/6.6.html
Solution 3:
After a lot of searching and trying many solutions, I got it finally:
-
uninstall connector
-
uninstall MySQL for Visual Studio from control panel
-
reinstall them according to the table below
-
copy the assembly files from
C:\Program Files (x86)\MySQL\MySQL Connector Net 6.9.8\Assemblies\v4.5
toC:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE
-
log off and reopen your solution
-
enjoy