mysql common problem processing - insert data error code: 1206

mysql common problem processing - insert data error code: 1206

  1. error code:1206 the total number of locks exceeds the lock table size

Log in to mysql and enter in the command window:

show variables like "%_buffer_pool_size%";  

The default innodb_buffer_pool_size=8388608, the innodb_buffer_pool_size parameter indicates the size of the buffer pool in bytes, the memory area of ​​InnoDB cache table and index data. Mine has been changed

Modify the value of innodb_buffer_pool_size to 67108864 = 3 1024 1024*1024 = 3G:

SET GLOBAL innodb_buffer_pool_size=67108864;

Then restart the MySQL service, and now it is no problem to continue to insert

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324983272&siteId=291194637