架构师_程序员_码农网

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 9134|回复: 1

[资料] You are using safe update mode and you tried to update a t

[复制链接]
发表于 2018-5-22 10:32:45 | 显示全部楼层 |阅读模式

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执行update的时候,如果不是用主键当where语句,会报如上错误,使用主键用于where语句中正常。

这是因为MySql运行在safe-updates模式下,该模式会导致非主键条件下无法执行update或者delete命令,

执行命令SET SQL_SAFE_UPDATES = 0;修改下数据库模式

如果想要提高数据库安全等级,可以在恢复回原有的设置,执行命令:SET SQL_SAFE_UPDATES = 1;







上一篇:关于jwt(JSON Web Tokens)的理解学习
下一篇:Discuz API&JSON 适用于IOS及Android移动端开发
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
 楼主| 发表于 2023-6-24 13:16:12 | 显示全部楼层
You are using safe update mode and you tried to update a t
https://www.itsvse.com/thread-4787-1-1.html

Error Code: 1175. You are using safe update mode and you tried to update a ta...
https://www.itsvse.com/thread-4051-1-1.html

Error Code: 1175. You are using safe update mode and you tried to update a ta...
https://www.itsvse.com/thread-3839-1-1.html

Error Code: 1175. You are using safe update mode and you tried to update a ta...
https://www.itsvse.com/thread-3713-1-1.html
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

免责声明:
码农网所发布的一切软件、编程资料或者文章仅限用于学习和研究目的;不得将上述内容用于商业或者非法用途,否则,一切后果请用户自负。本站信息来自网络,版权争议与本站无关。您必须在下载后的24个小时之内,从您的电脑中彻底删除上述内容。如果您喜欢该程序,请支持正版软件,购买注册,得到更好的正版服务。如有侵权请邮件与我们联系处理。

Mail To:help@itsvse.com

QQ|手机版|小黑屋|架构师 ( 鲁ICP备14021824号-2 )|网站地图

GMT+8, 2024-4-18 12:39

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表