Mysql Error Code 1175

在使用MySQL Workbench进行数据库批量删除或者更新的时候,出现以下错误:

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 Editor -> Query Editor and reconnect.

这是因为MySQL Workbench默认是safe mode也就是不能批量更新或删除表数据,解决办法:

Edit -> Preferences -> SQL Edit:

把safe update. Forbid Updates or Deletes .... 这个勾掉,不要选上,然后OK. 还要重新启动连接才有效!

猜你喜欢

转载自kobe-hz.iteye.com/blog/2202195
今日推荐