One - One Code All

Blog Content

mysql8 内存优化

MySQL Linux-Mac   2021-10-17 08:53:13

查看内存使用

# 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



上一篇:腾讯云卸载重装python3
下一篇:Sublime Text 4143 激活码

The minute you think of giving up, think of the reason why you held on so long.