Skip to content

Instantly share code, notes, and snippets.

@caseybecking
Created June 19, 2015 18:41
Show Gist options
  • Save caseybecking/76fe3e3fc58c35bab627 to your computer and use it in GitHub Desktop.
Save caseybecking/76fe3e3fc58c35bab627 to your computer and use it in GitHub Desktop.
Find DB Size
SELECT table_name AS "Tables",
round(((data_length + index_length) / 1024 / 1024), 2) "Size in MB"
FROM information_schema.TABLES
WHERE table_schema = "volcom"
ORDER BY (data_length + index_length) DESC;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment