How To: Connect to a MySQL database using Connector/.NET in C#

Try this: