Tag Archives: Error Code: 1175

[Solved] MySQL Delete or Update Data Error: Error Code: 1175

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.

Because MySQL runs in the safe-updates mode, the update or delete commands cannot be executed under non primary key conditions.

1. show variables like ‘SQL_SAFE_UPDATES’; Check the switch status.

2. Execute command set SET SQL_SAFE_UPDATES = 0; Modify database mode

 

Solve the error code: 1175 error of MySQL workbench

Why can’t you grab tickets when you travel on holiday?Reveal the key technology of 12306 how to ensure the ticket is not oversold>>>

error:

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

analysis:

Using workbench, if you want to update or delete data in batch, you will generally report“

Error code: 1175 you are using safe update mode and you tried to update a table without a where that uses a key column “error, which is caused by the security settings of workbench and can be handled by setting

solutions:

Quick setting, directly input “set SQL” in the query window of workbench_ SAFE_ UPDATES = 0;” That’s it

1 SET SQL_SAFE_UPDATES = 0;
2 update testcase set check_point = '"code":200'
3 where creater ="xxx";
4 
5 SELECT * FROM test.testcase;

References

https://jingyan.baidu.com/article/6c67b1d6f0efca2787bb1eba.html