报错:Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Queries and reconnect.
报错原因:
数据库在安全模式下,是不允许一条命令全删和全修改的
解决方法:
set sql_safe_updates=0; /*取消安全模式*/
提醒: 修改完之后最好再设置回安全模式,即set sql_safe_updates=1;