600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > mysql修改数据报错Error Code: 1175. You are using safe update mode

mysql修改数据报错Error Code: 1175. You are using safe update mode

时间:2020-02-26 03:29:08

相关推荐

mysql修改数据报错Error Code: 1175. You are using safe update mode

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> show variables like 'sql_safe%';+------------------+-------+| Variable_name | Value |+------------------+-------+| sql_safe_updates | ON |+------------------+-------+

SQL_SAFE_UPDATES = 1,ON时开启安全更新模式

SQL_SAFE_UPDATES =0,OFF时关闭安全更新模式

关闭安全更新模式

mysql> set sql_safe_updates=0;

mysql> show variables like 'sql_safe%';+------------------+-------+| Variable_name | Value |+------------------+-------+| sql_safe_updates | OFF |+------------------+-------+

更改只在当前生效,退出mysql,再次登录后恢复为默认。

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。