0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

workbenchのエラー(Error Code: 1175)の対処法

Last updated at Posted at 2020-01-04

workbenchを使っていて、このエラーにぶち当たったので、対処法を備忘録として記載しておきます。

エラー内容
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.

なんて言っているかというと。。。

「君はセーフモードで起動しているから、prifarence key(主key)以外の絞り込み検索条件(where以降の条件文)ではUPDATEができないぜ!もしもセーフモードを無効にしたかったら、Preferences -> SQL Editor で切り替えてくれ!そして、再接続してね!」

ということを言っているわけです。

macだとどう辿るかを記載します。

  1. 左上のMySQLWorkBenchからPreferencesを選択
  2. 立ち上がったポップアップにてSQL Editor を選択
  3. Others内のSafe Updates のチェックを外す
  4. workbenchを再起動

このステップで解決できました!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?