Cannot Update key column in MySQL or Aurora DB

When you tried to update the key column or delete the record, you might get this error message from Database. I think it’s normally happening on MySQL or Aurora DB. (I haven’t experience this with Oracle or MS SQL Database)

This is the error message:

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.

To resolve this, you can add following script before you statement.

SET SQL_SAFE_UPDATES = 0;

Leave a Reply