MySQL错误:Youareusingsafeupdatemodeandyoutriedt。。。今⽇⽤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
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.
批量更新sql语句
进过⼀番搜索之后发现原来是MySQL Workbench的安全设置。当要执⾏的SQL语句是进⾏批量更新或者删除的时候就会提⽰这个错误。
解决⽅法如下:
打开Workbench的菜单[Edit]->[]切换到[SQL Editor]页⾯把[Forbid UPDATE and DELETE statements without a WHERE clause (safe updates)]之前的对勾去掉点击[OK]按钮最后⼀步记得要重启⼀下Workbench,否则你仍然会得到这个错误提⽰。

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。