```
private void keepdata()
    {

        string connString = "Server=localhost;Database=databaserfid;Uid=root;Pwd=12345;";
        using (mcon = new MySqlConnection(connString))
        using (cmd = mcon.CreateCommand())
        {
            try
            {
                mcon.Open();
                MessageBox.Show("Connect");
            }
            catch
            {
                MessageBox.Show("Not Connect");
            }
        }
    }

```

this code i can't connect MySql

State show "closed"

no error list

i install mysql connector and add references Mysql.Data already

how to solve this problem? (I need state Open)