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 and reconnect.
错误代码:1175。您正在使用安全更新模式,并且您试图更新一个没有使用键列的WHERE的表。要禁用安全模式,请在Preferences -> SQL编辑器中切换选项并重新连接。
这是因为MySQL运行在安全模式下,该模式会导致非主键条件下无法执行update或者delete命令。
可以输命令解决:
SET SQL_SAFE_UPDATES = 0;
接下来再update或者delete就不会报错了。