How do you check if it is open or closed I was using
if (SQLOperator.SQLCONNECTION.State.Equals(\"Open\"))
however, even the State is \'Op
Check if a MySQL connection is open
ConnectionState state = connection.State; if (state == ConnectionState.Open) { return true; } else { connection.Open(); return true; }