Skip to content

Instantly share code, notes, and snippets.

@rgo
Created February 2, 2011 08:49
Show Gist options
  • Save rgo/807426 to your computer and use it in GitHub Desktop.
Save rgo/807426 to your computer and use it in GitHub Desktop.
How much space does my MySQL db?
SELECT table_schema "DB", sum( data_length + index_length ) / 1024 / 1024 / 1024 "Size (GB)" 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