How to monitor MySQL space?

前端 未结 6 1479
死守一世寂寞
死守一世寂寞 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:36

    Since you have VM and you don't really care how the space is used, I think the simplest way is to check the size of MySQL data dir. By default it is /var/lib/mysql. Also it`ll be nice to cleanup the mysql binary logs (if possible) before checking data dir size.

提交回复
热议问题