What do I do wrong with MySqlConnection?

I have a SqlConnection with a function in MS SQL and that works, now I want it to work in MySQL and this doesn’t work, what do I do wrong?

public static string ConnectionDB()
    {        
        string dbConStr = ConfigurationManager.ConnectionStrings["WAPMySQLConnStr"].ConnectionString;
        return dbConStr;
    }

public static void UpdDB(string sql, string[] dbParams, string[] db_waarde)
    {
        string connStr = ConnectionDB();

        MySqlConnection conn = new MySqlConnection();                
        conn = new MySqlConnection(connStr);

        MySqlCommand cmd = new MySqlCommand(sql, conn);

        cmd.CommandText = sql;
        cmd.CommandType = CommandType.Text;
        cmd.Connection = conn;
        
        for (int i = 0; i < dbParams.Length; i++)
        {
            SqlParameter sqlP;
            sqlP = new SqlParameter();
            sqlP.ParameterName = dbParams[i];
            sqlP.Value = db_waarde[i];
            cmd.Parameters.Add(sqlP);
        }

        cmd.Connection.Open();
        cmd.ExecuteNonQuery();
        cmd.Connection.Close();
    }

This 're the errors I get:Error1'MySqlConnection' does not contain a constructor that takes '1' argumentsC:UsersBASE3DocumentsVisual Studio 2008WebSitesSlideShowWebSiteApp_CodeMySqlConnection.cs4816C:...SlideShowWebSiteError1'MySqlConnection' does not contain a constructor that takes '1' argumentsError2The best overloaded method match for 'MySql.Data.MySqlClient.MySqlCommand.MySqlCommand(string, MySql.Data.MySqlClient.MySqlConnection)' has some invalid argumentsError3Argument '2': cannot convert from 'MySqlConnection' to 'MySql.Data.MySqlClient.MySqlConnection'Error4Cannot implicitly convert type 'MySqlConnection' to 'MySql.Data.MySqlClient.MySqlConnection'

 When you are connecting to a different type of database you have to get the driver to connect. If ODBC driver is available at www.mysql.com/products/connector/odbc. Then in the sqldatasource there is a different format i.e

instead of  your code try the below,using System;using System.Data;using MySql.Data;using MySql.Data.MySqlClient;using System.Configuration;MySqlConnection conn = new MySqlConnection(ConfigurationManager.ConnectionStrings["WAPMySQLConnStr"].ConnectionString);string sqlquery = "YourQuery";MySqlCommand cmd = new MySqlCommand("sqlquery", conn);              cmd.CommandText = sqlquery;           cmd.CommandType = CommandType.Text;           cmd.Connection = conn;                      for (int i = 0; i < dbParams.Length; i++)           {               SqlParameter sqlP;               sqlP = new SqlParameter();               sqlP.ParameterName = dbParams[i];               sqlP.Value = db_waarde[i];               cmd.Parameters.Add(sqlP);           }             cmd.Connection.Open();           cmd.ExecuteNonQuery();           cmd.Connection.Close(); Regards,