Here are some things that may be causing issues or conflicts. They may be unnecessary but it just neatens your code.
Create the SQL Command object inside your SQL Connection:
MySQLConnection = new SQLConnection(/*Connection string here*/); command = MySQLConnection.CreateCommand();
Use a
try{} catch{}
block. This will catch on any errors and show you what is going on if you follow the code in debug mode. eg.try { //your code here } catch(SqlException e){ Console.WriteLine(e.Message); } finally { if (MySQLConnectrion != null) { MySQLConnection.Close(); } }