[MySQL]You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column

执行update语句,出现问题:

问题描述:

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.

问题描述里已经给了解决方法,对SQL Editor进行设置,并且重新连接。

问题原因:

mysql 的workbench的安全设置问题

解决方法:

打开workbench

选择菜单Edit-->Preferences...-->SQL Editor

保存设置后,关闭workbench并重启,设置生效,问题解决。

 

posted @ 2017-09-27 11:00  小猴子爱吃桃  阅读(537)  评论(0编辑  收藏  举报