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

临时解决方案,重启MySQL服务会失效

第一步:查看 innodb_buffer_pool_size 值 的大小 show variables like
"%_buffer%"; 第二步:修改 SET GLOBAL innodb_buffer_pool_size=67108864;(3*1024*1024*1024,不要忘记;号)

完美解决

 第二种方案是:

  找到my.ini 文件,修改 tmp_table_size 的数值

 

  1. 找到 my.ini

        

 

 

第二步:

    

 

修改 tmp_table_size=74M 为  tmp_table_size=7400M

 

同时修改 innodb_buffer_pool_size=3500M

        

 

posted @ 2021-05-25 14:06  淋哥  阅读(3487)  评论(0编辑  收藏  举报