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;

上一篇:02 动画效果与safe args传参


下一篇:题解 Luogu P2934 [USACO09JAN]Safe Travel G