In order to connect to MySQL database you need to use the MySQL ODBC 5.1 Driver. The driver can be downloaded from http://dev.mysql.com/downloads/connector/odbc/5.1.html.

Please note:

 

Steps to create connection for MySQL in Visual Studio:

  1. Open the Configuration dialog of SmartDataSource
  2. Select New Connection... button.
  3. Change the Data Source to be ODBC Data Source
  4. Select the "Use connection string" radio button and select the Build button.
  5. Select the New button in order to build the data source
  6. For driver select MySQL ODBC 5.1 Driver
  7. Fill in the information, select your database, server, user, password

    It is important to explicitly select your database from the Database dropdown field.

  8. Select Details button and  make sure to check "Return matched rows instead of affected rows" flag.  This is required in order the MySQL ODBC driver to return properly the number of affected rows when updating the row with the same data.  See Knowledge article PRB: 'No data was affected' error when updating with MySQL ODBC driver
  9. Confirm the dialogs.
  10. You can also save the connection in Web.config by selecting the Save in Web.Config button.