Skip to content

Instantly share code, notes, and snippets.

@alfredormz
Created April 17, 2014 13:53
Show Gist options
  • Save alfredormz/10985207 to your computer and use it in GitHub Desktop.
Save alfredormz/10985207 to your computer and use it in GitHub Desktop.
MySQL database size
SELECT table_schema "Database",
SUM(data_length + index_length) / 1024 / 1024 AS "Size in MB"
FROM information_schema.TABLES
GROUP BY table_schema;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment