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

相关文章:

  • 2021-10-21
  • 2021-11-24
  • 2022-12-23
  • 2021-09-18
  • 2022-12-23
  • 2021-08-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-11-14
  • 2021-07-13
  • 2021-10-25
  • 2022-01-05
相关资源
相似解决方案