Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I get the aggregate volume usage for all of my MySQL DB's on my server? We have 55 DB's and I am wondering if there is a nice, easy way to get this.

share|improve this question
up vote 0 down vote accepted

du -hcs /var/lib/mysql for a summary of size on disk for everything

du -hcs /var/lib/mysql/* this is good for myISAM engine schemas for innoDB the id_data file indicates size on disk for all innoDB files.

share|improve this answer

One of the most effective ways is to look at the raw file size.. It takes into account your indexs and data..

Which in fact is a good idea ( seeming that your index's need to be read, and hopefully all fit into memory )

du -h /var/lib/mysql/then your dbs

Are you running on myisam or innodb??

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.