客户端安装MySQL驱动
使用ODBCConnection
string strConn = "DSN=MySQL;" + "Server=localhost;" + "DATABASE=mydb;" + "UID=root;" + "PWD=mypass;" + "OPTION=3";
OdbcConnection Conn = new OdbcConnection(strConn);
Conn.Open();