网站广告调词平台,360关键词指数查询,另类小说 Wordpress,川渝建设集团网站mysql在进行大批量的数据操作时#xff0c;会报“The total number of locks exceeds the lock table size”#xff0c;特别是执行create、update语句的时候#xff0c;
在出现错误的那段查询语句之前写上这么一句话#xff1a;
show variables like %_buffer%会报“The total number of locks exceeds the lock table size”特别是执行create、update语句的时候
在出现错误的那段查询语句之前写上这么一句话
show variables like %_buffer%;
SET GLOBAL innodb_buffer_pool_size67108864;
问题就解决了。启动MySQL时就要分配并且总是存在的全局缓存。
目前有
key_buffer_size(默认值402653184,即384M)、
innodb_buffer_pool_size(默认值134217728即128M)、
innodb_additional_mem_pool_size默认值8388608即8M、
innodb_log_buffer_size(默认值8388608即8M)、
query_cache_size(默认值33554432即32M)等五个。总共560M.
mysql出现size报错时一般是这几个值得问题而这些变量值都可以通过命令如show variables like 变量名;查看到并且通过命令如SET GLOBAL 变量名修改后的数值更改。