查看内存使用
# ps aux | grep mysqld | grep -v grep | awk '{print $11 "\t" $6/1024"MB" }' /usr/libexec/mysqld 371.129MB
修改my.cnf配置
performance_schema=off performance_schema_max_table_instances = 400 table_definition_cache = 400 table_open_cache = 500
再次查看内存使用
# ps aux | grep mysqld | grep -v grep | awk '{print $11 "\t" $6/1024"MB" }'; /usr/libexec/mysqld 246.844MB