c#写注册模块为什么信息提交不到数据库中,老是出现keyword not supported,求大神帮忙
string str = "sever=127.0.0.1;user ID=root;password=123456;database=caldb";
MySqlConnection con = new MySqlConnection(str);错误提示在这一运行就出现keyword not supported
con.Open();
string mysql = "insert into tb_peo(raterID,pas,name) values('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox4.Text + "',0)";
MySqlCommand cmd = new MySqlCommand(mysql, con); //创建执行
cmd.ExecuteNonQuery();
con.Close();
MessageBox.Show("恭喜你注册成功", "提示对话框", MessageBoxButtons.OK, MessageBoxIcon.Information);