How to monitor MySQL space?

前端 未结 6 1483
死守一世寂寞
死守一世寂寞 2021-01-31 20:48

I downloaded a VM image of a web application that uses MySQL.

How can I monitor its space consumption and know when additional space must be added?

6条回答
  •  别那么骄傲
    2021-01-31 21:50

    For MyISAM tables, I usually check the size of the /var/lib/mysql/mydatabasename/ directory. InnoDB tables use monolithic files, so you have to use SHOW TABLE STATUS.

提交回复
热议问题