mysql common problem processing - insert data error code: 1206
- 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