mysql database, close safe-updates mode, solve Error Code: 1175

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.

The error is because of MySql Running in safe-updates mode, this mode will cause the update or delete command to be unable to be executed under non-primary key conditions.

Solution:
SET sql_safe_updates=0; --Close the safe-updates mode
SHOW VARIABLES like 'sql_safe_updates'; --Query the status of the current safe-updates mode

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326816808&siteId=291194637