架构师_程序员_码农网

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 11083|回复: 1

[资料] Error Code: 1175. You are using safe update mode and you tried to update a ta...

[复制链接]
发表于 2017-5-22 11:13:21 | 显示全部楼层 |阅读模式
11:08:09        update user set host='%' where user='root'        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


QQ截图20170522111153.jpg

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

1、show variables like 'SQL_SAFE_UPDATES';查看开关状态。

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


3、记得再修改回来,SET SQL_SAFE_UPDATES = 1;








上一篇:【经典再续】雨林木风 Ghost Win7 32位&64位 快速装机版v201705
下一篇:Authentication to host 'localhost' for user 'root' using method 'mysql_nativ...
码农网,只发表在实践过程中,遇到的技术难题,不误导他人。
 楼主| 发表于 2023-6-24 13:16:16 | 显示全部楼层
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-28 17:20

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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