Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

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.

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

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.