当mysql 数据库出现这种问题:
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.
即mysql进入了安全模式,即safe-updates模式
解决办法:
SHOW VARIABLES like 'sql_safe_updates'; # 查询当前safe-updates模式的状态
SET sql_safe_updates=0; # 关闭safe-updates模式