mysql删除数据记录报错: delete from score where id =‘test’; 原因 因为 MySql 运行在 safe-updates模式下,该模式会导致非主键条件下无法执行update或者delete命令 解决方法: SET SQL_SAFE_UPDATES = 0;