使用MySQL执行update的时候报错:Error Code 1175.
来源:互联网 发布:中文域名百度收录吗 编辑:程序博客网 时间:2024/06/16 03:09
使用MySQL执行update的时候报错:
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 Queries and reconnect.
原因:
MySql运行在safe-updates模式下,该模式会导致非主键条件下无法执行update或者delete命令
解决办法:
执行命令
SET SQL_SAFE_UPDATES = 0;
修改下数据库模式
如果想要提高数据库安全等级,可以在恢复回原有的设置,执行命令:
SET SQL_SAFE_UPDATES = 1;
执行成功后,以delete命令为例,非主键情况下又报错了,说明安全等级修改成功
0 0
- 使用MySQL执行update的时候报错:Error Code 1175.
- MySql 执行 DELETE/UPDATE时,报 Error Code: 1175错误
- cocoaPods执行update时候报错 error: RPC failed; curl 56 SSLRead() return error -36
- MySql报Error Code: 1175. You are using safe update mode and you tried to update...
- 执行MySql更新报错:error code [1785]
- MySQL update Error Code: 1175
- Mysql 执行指令desc 表名的时候报错
- mysql执行大文件报错:Error Code: 2013. Lost connection to MySQL server during query
- 打开空间的时候报错mysql error ,
- 执行delete、update语句时,出现Error Code: 1175.解决方法
- 使用Hibernate操作对象的时候报错【update一个对象报的错】
- MySql 5.7 UPDATE 和 DELETE 导致的 error code [1093]
- MySQL Workbench update语句错误Error Code: 1175.
- mysql: Error Code: 1175. You are using safe update
- MySQL执行update时的[ERROR 1093]处理方法
- Mysql update error: Error Code: 1175. You are using safe update mode and you tried to update a table
- wxpython 在执行的时候报错
- linux centos(5.6)使用rpm方式安装mysql(5.5)时候报错:error:failed dependencies
- Linux下的第一个c程序~_~
- apache学习笔记(访问控制|禁止解析|禁止指定user_agent)
- 获取sd卡存储路径
- IIC ACK信号
- MySQL忘记root密码处理方法
- 使用MySQL执行update的时候报错:Error Code 1175.
- DataTable初始化参数的详细说明
- MySQL常用操作笔记[转]
- ImportError: No module named MySQLdb
- python自带模块发送邮件
- python生成验证码
- ./configure: error: SSL modules require the OpenSSL library.
- Vim技巧
- Qt套接字编程