数据库
首页 > 数据库> > mysql安全更新报错You are using safe update mode and you tried to update

mysql安全更新报错You are using safe update mode and you tried to update

作者:互联网

报错:

21:55:14 update users set realname=‘李四2’ where username=‘ls’ 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. 0.000
sec

解决:
执行该语句后即可:SET SQL_SAFE_UPDATES=0;

标签:tried,safe,update,报错,mode,using
来源: https://blog.csdn.net/weixin_45858621/article/details/120396112