How do I connect to MySQL 5.1 in Visual Studio 2010? How do I connect to MySQL 5.1 in Visual Studio 2010? mysql mysql

How do I connect to MySQL 5.1 in Visual Studio 2010?


To get the Entity Frame working with VS2010, I had to do the following:

  1. This only worked with Mysql .net Connector v6.3.1 (alpha). Previous versions ignored VS 2010 (click Development Releases)
  2. I had to rename my Framework\v1.1.4322\CONFIG folder. Otherwise the install will fail. Rename it back when finished

(I've blogged about this here)

Update6.3.2 is in beta and I can confirm this works. (I didn't need to rename the framework folder)


this seems to solve the issue

UPDATED LINK TO LATEST RELEASE THANKS @Christian Payne

Update: looks like there is already a non-beta!!!!

http://www.mysql.com/downloads/connector/net/


As someone else suggests..

http://dev.mysql.com/downloads/mirror.php?id=382641

..fixes the problem.

I had v6.2.3 installed after I had vs2010 installed and the MySQL driver was not shown in the list of the Database Connect dialog. I wrongly assumed I should use the .NET ODBC drivers instead and it caused all sorts of problems. Although I could easily connect to the DB using codebehind, the server explorer wouldn't connect to the DB.

Luckily after uninstalling 6.2.3 and installing 6.3.0 (from the link above) the MySQL driver was added to VS2010, and I was able to connect to the database and see it in my server explorer.