ERROR 1206 (HY000): The total number of locks exceeds the lock table size
2015-03-30 19:21
686 查看
今天的大大告诉我一台MySQL大批量update报如下错误“MySQL error code 1206 (ER_LOCK_TABLE_FULL): The total number of locks exceeds the lock table size”
开始排查:
首先,查看max_write_lock_count
mysql> show global variables like 'max_write_lock_count';
+----------------------+----------------------+
| Variable_name | Value |
+----------------------+----------------------+
| max_write_lock_count | 18446744073709551615 |
+----------------------+----------------------+
1 row in set (0.00 sec)
这个值18446744073709551615足够大,应该不是报错主因
其次,查看innodb_buffer_poll_size
mysql> show global variables like 'innodb_buffer%';
+-------------------------+---------+
| Variable_name | Value |
+-------------------------+---------+
| innodb_buffer_pool_size | 8388608 |
+-------------------------+---------+
1 row in set (0.00 sec)
innodb_buffer_pool_size默认大小,8M
随即调整开发环境参数为2G
#vi /etc/my.cnf
[mysqld]
innodb_buffer_pool_size=2G
重启数据库,问题解决
问题原因总结:
InnoDB表执行大批量数据的DDL操作时会调用innodb_buffer_pool_size空间来处理数据,该值过小就会报错。
开始排查:
首先,查看max_write_lock_count
mysql> show global variables like 'max_write_lock_count';
+----------------------+----------------------+
| Variable_name | Value |
+----------------------+----------------------+
| max_write_lock_count | 18446744073709551615 |
+----------------------+----------------------+
1 row in set (0.00 sec)
这个值18446744073709551615足够大,应该不是报错主因
其次,查看innodb_buffer_poll_size
mysql> show global variables like 'innodb_buffer%';
+-------------------------+---------+
| Variable_name | Value |
+-------------------------+---------+
| innodb_buffer_pool_size | 8388608 |
+-------------------------+---------+
1 row in set (0.00 sec)
innodb_buffer_pool_size默认大小,8M
随即调整开发环境参数为2G
#vi /etc/my.cnf
[mysqld]
innodb_buffer_pool_size=2G
重启数据库,问题解决
问题原因总结:
InnoDB表执行大批量数据的DDL操作时会调用innodb_buffer_pool_size空间来处理数据,该值过小就会报错。
相关文章推荐
- mysql报错"ERROR 1206 (HY000): The total number of locks exceeds the lock table size"的解决方法
- ERROR 1206 (HY000): The total number of locks exceeds the lock table size 错误解决
- mysql报错-ERROR 1206 (HY000)- The total number of locks exceeds the lock table size-的解决方法
- MySql 5.1x InnoDB "ERROR 1206 (HY000): The total number of locks exceeds the lock table size"的解决方法
- mysql报错"ERROR 1206 (HY000): The total number of locks exceeds the lock table size"的解决方法
- ERROR 1206 (HY000): The total number of locks exceeds the lock table size 错误解决
- mysql报错"ERROR 1206 (HY000): The total number of locks exceeds the lock table size"的解决方法
- 【MySQL笔记】mysql报错"ERROR 1206 (HY000): The total number of locks exceeds the lock table size"的解决方法
- mysql报错"ERROR 1206 (HY000): The total number of locks exceeds the lock table size"的解决方法
- MySQL5.7解决‘’(1206)The total number of locks exceeds the lock table size‘’问题
- mysql Error:The total number of locks exceeds the lock table size
- The total number of locks exceeds the lock table size错误
- mysql:The total number of locks exceeds the lock table size
- mysql The total number of locks exceeds the lock table size
- mysql出现The total number of locks exceeds the lock table size解决办法
- MYSQL 遭遇 THE TOTAL NUMBER OF LOCKS EXCEEDS THE LOCK TABLE SIZE
- total number of locks exceeds the lock table size
- 异常:java.sql.SQLException: The total number of locks exceeds the lock table size
- error: L6047U: The size of this image (32868 bytes) exceeds the maximum allowed for this version of
- .\ethercat.axf: error: L6047U: The size of this image (33488 bytes) exceeds the maximum allowed for