Mysql解决The total number of locks exceeds the lock table size错误


Mysql解决The total number of locks exceeds the lock table size错误

InnoDB表执行大批量数据的更新,插入,删除操作时会出现这个问题,需要调整InnoDB全局的innodb_buffer_pool_size的值来解决这个问题,并且重启mysql服务。
Mysql解决The total number of locks exceeds the lock table size错误

 
 
show variables like “%_buffer%”;(不要忘记带;号,没有;号表示一条语句没有结束)
默认的innodb_buffer_pool_size=8M
Mysql解决The total number of locks exceeds the lock table size错误
Mysql解决The total number of locks exceeds the lock table size错误
 
 
显示的格式是 1M*1024*1024,设置的时候也要这样设置,例如
 
 
修改 innodb_buffer_pool_size的值为3G:
 
SET GLOBAL innodb_buffer_pool_size=67108864;(3*1024*1024*1024,不要忘记;号)
 
原文链接:https://blog.csdn.net/github_36326955/article/details/54970808
 
最后删除成功了
Mysql解决The total number of locks exceeds the lock table size错误
 

原创文章,作者:,如若转载,请注明出处:https://blog.ytso.com/tech/database/267424.html

(0)
上一篇 2022年6月15日 06:56
下一篇 2022年6月15日 06:56

相关推荐

发表回复

登录后才能评论