MYSQL碰到The total number of locks exceeds the lock table size 问题解决记录

Posted XinRuiIIII

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MYSQL碰到The total number of locks exceeds the lock table size 问题解决记录相关的知识,希望对你有一定的参考价值。

解决记录如下:
  在mysql里面进行修改操作时提示:The total number of locks exceeds the lock table size ,通过百度搜到innodb_buffer_pool_size过小;
  打开mysql 命令框 输入 show variables like "%tmp%";

  查看innodb_buffer_pool_size,输入SET GLOBAL innodb_buffer_pool_size=67108864;

  完成之后再次使用show variables like "%tmp%";查询,如下图。(这里不需要重启mysql服务,我这边重启之后size会还原大小还得再次修改)
  

 

如上操作后,发现还是不行,然后联系DBA发现给我的账号没有权限,修改权限之后OK.

以上是关于MYSQL碰到The total number of locks exceeds the lock table size 问题解决记录的主要内容,如果未能解决你的问题,请参考以下文章

Guess the number

LeetCode 287. Find the Duplicate Number (python 判断环,时间复杂度O(n))

huggingface | how to get the params‘ number of a model

The kth great number

Leetcode Find the Duplicate Number

287 Find the Duplicate Number 寻找重复数