MYSQL错误:Error Code: 1175解决办法
今天对视图进行更新,发现修改不了数据,报错如下:
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安全等级高的原因,更新时不用主键当where语句,就会拒绝update。
解决办法:降低安全等级
写入Mysql语句:set sql_safe_updates =0;
之后再进行操作即可。