2、添加配置(可以先单独尝试这一步,我在不关闭innodb引擎的情况从471M降低到了70M)
performance_schema_max_table_instances=200
table_definition_cache=200
table_open_cache=128
==================================================================================
mysql 重启: /etc/init.d/mysqld restart
/etc/my.cnf配置如下
# For advice on how to change settings please see
# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html
# *** DO NOT EDIT THIS FILE. It's a template which will be copied to the
# *** default location during install, and will be replaced if you
# *** upgrade to a newer version of MySQL.