LoginSignup
31
20

More than 5 years have passed since last update.

ロック待ちのタイムアウト時間の確認/設定

Posted at

デフォルト値

  • MySQLのデフォルトは 50 秒
  • Aurora のデフォルトも同様

確認

mysql> SHOW VARIABLES LIKE 'innodb_lock_wait_timeout';

設定

その場で変更する場合

mysql> SET innodb_lock_wait_timeout=5;

my.cnf に書く場合

[mysqld]
innodb_lock_wait_timeout = 5

参考

31
20
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
31
20