1
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 3 years have passed since last update.

【MySQL】ERROR 1206 (HY000): The total number of locks exceeds the lock table size

Posted at

SELECTしてINSERTしようとした時に,下記のエラーが出た.
どうやらデータが多くバッファプールが足りなくなったようです.

ERROR 1206 (HY000): The total number of locks exceeds the lock table size

そのため,~/etc/my.conf
innodb_buffer_pool_size=404750336
を追記.sudo権限必要です.

~/etc/my.conf
innodb_buffer_pool_size=404750336

更新したら再起動.

$ mysql.server restart

確認すると

> show variables like 'innodb_buffer_pool_size';
+-------------------------+-----------+
| Variable_name           | Value     |
+-------------------------+-----------+
| innodb_buffer_pool_size | 536870912 |
+-------------------------+-----------+
1 row in set (0.00 sec)

足される形になるんですね.

いろいろ調べてみると

https://qiita.com/mita2/items/8fd915164f0851c96e54
こちらの記事が参考になりました.

1
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
1
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?