9
8

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.

MySQL Workbenchのautocommitの設定をoffにする

Posted at

概要

MySQLをMySQLWorkbench を使って操作する際、操作をミスったのでrollbackしたら、rollbackされず\(^o^)/オワタ
となることがありました…
デフォルトでautocommitモードがonになる仕様らしく、設定で回避できるので設定方法を記載します。

公式ドキュメント

設定方法

  • MySQLWorkBenchを起動する
  • Edit → Preferences... → SQL Excution
  • Leave autocommit mode enabled by default のチェックを外す
    workbench.PNG

確認方法

  • SQLを叩く画面で以下の部分がデフォルトで選択されていなくなっていれば設定完了

workbenchtoggle.PNG

さいごに

これで安全に、mysqlの作業をすることができます(≧∇≦)b
他にもWorkbenchってupdateのinの中にselect文を指定できないとか独自の仕様があって、ハマるポイント多いですよね…

9
8
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
9
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?