mysql5.6默认情况下内存占用太大

时间:2021-09-17 16:41:02

下载了mysql5.6.12 ,默认占用内存达400多M,  而原来使用的5.0 只有30M..

解决方案:调整以下参数
----------------
performance_schema_max_table_instances=600
table_definition_cache=400
table_open_cache=256

这样下来,mysql5.6.12就只使用  40---60M左右的内存了.

以下是5.6默认的设置
performance_schema_max_table_instances 12500
table_definition_cache 1400
table_open_cache 2000