解决Mysql Workbench的Error Code: 1175错误
2023-09-27 14:25:18 时间
错误:
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.00026 sec
分析:
使用workbench,如果你要批量更新或删除数据,一般会报“
Error Code: 1175 You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column”错误,这是Workbench的安全设置导致的,通过设置就可以处理。
解决办法:
快速设置,直接在workbench里面的查询窗口输入“SET SQL_SAFE_UPDATES = 0;”就可以了
1 SET SQL_SAFE_UPDATES = 0; 2 update testcase set check_point = '"code":200' 3 where creater ="xxx"; 4 5 SELECT * FROM test.testcase;
参考
https://jingyan.baidu.com/article/6c67b1d6f0efca2787bb1eba.html
相关文章
- mysql对执行结果进行html格式的输出?输出html格式?
- 简述C#中IO的应用 RabbitMQ安装笔记 一次线上问题引发的对于C#中相等判断的思考 ef和mysql使用(一) ASP.NET/MVC/Core的HTTP请求流程
- MySQL主从复制中常见的3个错误及填坑方案
- mysql数据库使用错误<errno:13>
- mysql查询两个时间段是否有交集
- mysql数据查询 3.聚合查询
- 使用navicat连接mysql连接错误:Lost connection to Mysql server at 'waiting for initial communication packet'
- mysql插入数据显示:Incorrect datetime value: '0000-00-00 00:00:00' 错误的处理
- mysql 自定义函数与自定义存储过程的调用方法
- mysql—mysql错误Every derived table must have its own alias解决
- mysql数据库初始化(启动mysql时候报很多错误,初始化)
- Mysql_解决The total number of locks exceeds the lock table size错误
- 今天搞log4net插入错误日志去mysql数据库的时候出现了点问题,已解决。记录下解决方案
- 解决mysql开启GTID主从同步出现1236错误问题
- MySQL数据库远程连接开启方法
- MySQL错误:The user specified as a definer (XXX@XXX) does not exist
- (5.11)mysql复制错误
- mysql 链接数满了的错误 ERROR 1040 (HY000): Too many connections