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.

link|improve this question

feedback

2 Answers

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.

link|improve this answer
feedback

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??

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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