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?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I have some great big queries to share:
Run this to get the Total MySQL Data and Index Usage By Storage Engine
Run this to get the Total MySQL Data and Index Usage By Database
Run this to get the Total MySQL Data and Index Usage By Database and Storage Engine
CAVEAT
In each query, you will see
(SELECT 3 pw). The pw stands for the Power Of 1024 to display the results.(SELECT 0 pw)will Display the Report in Bytes(SELECT 1 pw)will Display the Report in KiloBytes(SELECT 2 pw)will Display the Report in MegaBytes(SELECT 3 pw)will Display the Report in GigaBytes(SELECT 4 pw)will Display the Report in TeraBytes(SELECT 5 pw)will Display the Report in PetaBytes (please contact me if you run this one)Here is a report query with a little less formatting:
Trust me, I made these queries over 4 years ago and still use them today.
UPDATE 2013-06-24 15:53 EDT
I have something new. I have changed the queries so that you do not have to set the
pwparameter for different unit displays. Each unit display is calculated for you.Report By Storage Engine
Report By Database
Report By Database / Storage Engine