您的位置:首页 > 数据库 > MySQL

Mysql 常见问题汇总:

2017-03-23 18:41 295 查看
ERROR 1206 (HY000): The total number of locks exceeds the lock table size

解决办法:更改innodb_buffer_pool_size的设置,这个参数定义了InnoDB存储引擎的表数据和索引数据的最大内存缓冲大小。打开Mysql 命令行模式:

mysql> show variables like "innodb_buffer_pool_size";
+-------------------------+------------+
| Variable_name           | Value      |
+-------------------------+------------+
| innodb_buffer_pool_size | 8388608    |
+-------------------------+------------+

# 默认可用内存为8MB,将其改为2GB
mysql> set global innodb_buffer_pool_size = 2147483648;
Query OK, 0 rows affected (0.02 sec)

# 检查设置结果
mysql> show variables like "innodb_buffer_pool_size";
+-------------------------+------------+
| Variable_name           | Value      |
+-------------------------+------------+
| innodb_buffer_pool_size | 2147483648 |
+-------------------------+------------+
1 row in set, 1 warning (0.01 sec)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: