Solve Sql Safe Update Mode in Mysql Workbench

Just for my note when i use mysql workbench for monitor my database. When we want to delete or update file, it will return some error result that say

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 Queries and reconnect.

To fix this, you must set sql update safe first with this code :

SET SQL_SAFE_UPDATES=0;
delete from `blablabla..`

ok, finish.. hope it help…
happy coding..

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: