What is the error you get?

Did you reference the MySql.Data.dll into to your project's references?