MySQL错误:ERROR 1175: You are using safe update mode 解决方法
作者:高景洋 日期:2023-01-31 09:55:03 浏览次数:1112
提示如下错误:
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有个叫SQL_SAFE_UPDATES的变量,为了数据库更新操作的安全性,此值默认为1或ON,所以才会出现更新失败的情况。
处理方法:
执行以下两条命令,均可:
set sql_safe_updates=0;
set sql_safe_updates=off;
本文永久性链接:
<a href="http://r4.com.cn/art221.aspx">MySQL错误:ERROR 1175: You are using safe update mode 解决方法</a>
<a href="http://r4.com.cn/art221.aspx">MySQL错误:ERROR 1175: You are using safe update mode 解决方法</a>
相关文章
- mysql查看设置当前最大链接数
- linux centos如何修改mysql root用户密码
- centos 查看修改mysql端口号
- mysql如何修改时区为东八区区时,北京时间
- MySQL错误:ERROR 1175: You are using safe update mode 解决方法
- 连接mysql时提示 is not allowed to connect to this mysql
- linux centos7 mysql 防火墙开放3306端口
- linux centos7安装mysql教程
- 安装mysql报错:repository are already installed but they are not correct for this package.
- mysql错误 IP address 'xxxx' could not be resolved: Name or service not known
当前header:Host: r4.com.cn
X-Host1: r4.com.cn
X-Host2: r4.com.cn
X-Host3: 127.0.0.1:8080
X-Forwarded-For: 3.21.158.85
X-Real-Ip: 3.21.158.85
X-Domain: r4.com.cn
X-Request: GET /art221.aspx HTTP/1.1
X-Request-Uri: /art221.aspx
Connection: close
Accept: */*
User-Agent: Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Cookie: mtcached_mtsession_hqjrkw3j3a4uwugarqsmsm44=08c92760be0cc378455247eafb6c4b30fc0c376a1e9f65ff; aoji_session_uuid=a42e0e1074df4d3ab53f67298b971d03_20241221; aoji_uuid=df0b4ef4898543baa231471334f945d6_20241221
Accept-Encoding: gzip, br, zstd, deflate