Fix MySQL safe update mode error
When I exec `update table_name set column1=value1`, I meet this Error:
“You are using safe update mode and you tried to update a table without a WHERE clause that uses a KEY column.”
How to fix it ?
Close the safe update mode by exec this sql command:
SET SQL_SAFE_UPDATES=0;
On the other hand, you can restore the setting by this sql command:
SET SQL_SAFE_UPDATES=1;














