一、错误

rror 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.

二、原因

处于安全考虑,防止因意外操作而删除大量的数据而做的设计。
例如:
需要将tableA表中的李四性别改为男,但是忘了写where,那么一般的后果是,表中所有人的性别均被改成了男。
update tableA set gender = ‘男’
还有一些程序员的个人疏忽造成用户数据的损坏,严重的可能丢失等!

正是基于这一点,Mysql bench做了这样一个安全设计。

三、参考

http://blog.csdn.net/amohan/article/details/9980315