備忘録‎ > ‎

[mysql][error]Error Code: 1175

Url Redirector Modified

.

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 -> Query Editor and reconnect.


安全な更新を行うモード(SAFE_UPDATES=1)になっているとこのエラーが発生する。
このモードの場合はKEY項目で更新行を指定する必要がある。
 
KEY項目を条件にした更新に書き換えるか、以下の変数でモード解除をおこなう。

SET SQL_SAFE_UPDATES=0;

 
再び有効にする場合は1をセットする。

SET SQL_SAFE_UPDATES=1;

 
Comments