I was trying to update my mysql database but it didn't work and showed me error.
The code :
string constring = "datasource=localhost;port=3306;username=root;password=root";
string Query = "update database.check set namethestore = '" + this.textBox65.Text + "' , checkername= '" + this.textBox66.Text + "' , where namethestore = '" + this.textBox65.Text + "' ;";
MySqlConnection conDataBase = new MySqlConnection(constring);
MySqlCommand cmdDataBase = new MySqlCommand(Query, conDataBase);
MySqlDataReader myReader;
try
{
conDataBase.Open();
myReader = cmdDataBase.ExecuteReader();
MessageBox.Show("saved");
while (myReader.Read())
{
}