title: fatal error encountered during command execution mysql data insertion
body: <p>I am getting the "fatal error encountered during command execution" error message when I am running this part of the code:        </p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
      {
          MySqlCommand cmd = new MySqlCommand("INSERT INTO clienti(nume, prenume, localitate, cnp, adresa, telefon, email) VALUES(@numen, @prenumep, @locl, @cnpc, @adresaa, @telefont, @emaile); ", conn);
  
          try
          {
              if (numen.Text.Length &gt; 0 &amp;&amp; prenumep.Text.Length &gt; 0 &amp;&amp; locl.Text.Length &gt; 0 &amp;&amp; adresaa.Text.Length &gt; 0 &amp;&amp; telefont.Text.Length &gt; 0 &amp;&amp; emaile.Text.Length &gt; 0)
              {
                  cmd.Parameters.AddWithValue("@numen", numen.Text);
                  cmd.Parameters.AddWithValue("@prenumep", prenumep.Text);
                  cmd.Parameters.AddWithValue("@locl", locl.Text);
                  cmd.Parameters.AddWithValue("@adresaa", adresaa.Text);
                  cmd.Parameters.AddWithValue("@telefont", telefont.Text);
                  cmd.Parameters.AddWithValue("@emaile", emaile.Text);
                  cmd.ExecuteNonQuery();
              }
              else
                  throw new Exception("Completati toate informatiile");
              MessageBox.Show("Clientul " + numen.Text + " a fost adaugat");
              numen.Text = "";
              prenumep.Text = "";
              locl.Text = "";
              adresaa.Text = "";
              telefont.Text = "";
              emaile.Text = "";
  
          }
          catch (Exception ex)
          {
              MessageBox.Show(ex.Message);
          }
      }
  </code></pre>
  
  <p>The info is extracted from some textboxes and it has to be written into the MySQL Database.</p>
  
  <p>Thank you in advance for your help.</p>