Connect to External SQL Database in C#
You'll need the MySQL
driver:
http://dev.mysql.com/downloads/connector/net/
You can then use the the MySqlConnection
connection class to connect.
MySqlConnection connection = new MySqlConnection(connectionString);
http://www.codeproject.com/Articles/43438/Connect-C-to-MySQL
You can't use SqlConnection
object to connect to MySQL database, you should use MySqlConnection
instead after you import its dll