MySQL解决[Err] 1206 - The total number of locks exceeds the lock table size问题
来源:互联网 发布:英语四级软件推荐 编辑:程序博客网 时间:2024/04/30 06:20
环境:Ubuntu;
查看MySQL版本:mysql>show version();
解决标题中的问题:修改innodb_buffer_pool_size的大小。
1、查看当前innodb_buffer_pool_size的大小:mysql>show variables like '%innodb_buffer_pool_size%';
一般默认为134217728,即128MB。
2、修改innodb_buffer_pool_size,尝试:mysql>set innodb_buffer_pool_size=2,147,483,648;
尝试修改为2GB,失败,提示:ERROR 1238 (HY000): Variable 'innodb_buffer_pool_size' is a read only variable
3、换一种方式,修改my.cnf
(1)查找my.cnf位置:tom@ubuntu: sudo find / -name 'my.cnf' 2>1
2>1.附:ls a.txt b.txt 1>file.out 2>file.out
这样写的话你没考虑stdout和stderr的缓冲。
stdout是行缓冲的,他的输出会放在一个buffer里面,只有到换行的时候,才会输出到屏幕;而stderr是无缓冲的,会直接输出。
重定义到文件后,stdout就变成全缓冲(而不是行缓冲),得等到缓冲区满(一般8192B)才会实际写入;而stderr不管怎么样重定向,都是无缓存,向其输入数据后,马上实际写入。
这样有可能导致file.out文件内容错乱,stdout和stderr内容前后顺序颠倒
(2)my.cnf在ubuntu下默认在/etc/mysql/my.cnf
sudo vi /etc/mysql/my.cnf
在[mysqld]下面填加:
innodb_buffer_pool_size=2G
(3)保存修改后,重启mysql服务:sudo service mysql restart
之后查看innodb_buffer_pool_size是否修改成功
- MySQL解决[Err] 1206 - 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 Error: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报错-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"的解决方法
- 异常:java.sql.SQLException: The total number of locks exceeds the lock table size
- The total number of locks exceeds the lock table size错误(已纠正)
- The total number of locks exceeds the lock table size错误
- 解决:Mysql exceeds the lock table size 不指定
- The size of the object heap + VM data exceeds the maximum representable size问题解决办法
- .\ethercat.axf: error: L6047U: The size of this image (33488 bytes) exceeds the maximum allowed for
- error: L6050U: The code size of this image exceeds the maximum allowed for this versio
- The specified size exceeds the maximum representable size.
- Error: The number of filter groups does not divide the total number of filters.
- Dynamically size the height of the table view cells
- css伪类
- sudo uograde 之后 需要重装显卡驱动
- Android库工程及代码混淆(project.properties、proguard-project.txt)
- PHP文件解压,压缩文件遍历,文件夹遍历
- iOS 手机号正则表达式
- MySQL解决[Err] 1206 - The total number of locks exceeds the lock table size问题
- cas 服务器安装
- 如何在生产中成功运用Docker
- Android基础-----Activity,Intent
- 弹出层弹出框
- eclipse新建maven项目报错
- 【C#】华南理工大学计算机考研复试题目
- Application.SetCompatibleTextRenderingDefault(false)作用
- 在Java 中哪些组件需要使用内存