Command-Line Format --tmp_table_size=#
System Variable Name tmp_table_size
Variable Scope Global, Session
Dynamic Variable Yes
Permitted Values Type integer
Default 16777216
Min Value 1024
Max Value 18446744073709551615

tmp_table_size:

内存中临时表的最大值。不负责限制MEMORY/HEAP表最大容量,如果执行SQL产生临时表超过 tmp_table_size/max_heap_table_size,则会产生基于磁盘的MyISAM表

 

max_heap_table_size

负责设置MEMORY/HEAP表最大容量,不管其他执行SQL产生的临时表,如果内存不够用,则不允许写入新的数据,MEMORY/HEAP表也不会转成磁盘表,只会告警超限后拒绝写入

相关文章:

  • 2022-12-23
  • 2021-12-21
  • 2021-12-31
  • 2022-12-23
  • 2021-11-04
  • 2021-10-23
  • 2021-12-04
  • 2021-04-27
猜你喜欢
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2021-12-09
  • 2022-12-23
  • 2021-06-26
  • 2022-12-23
相关资源
相似解决方案