Skip to content

Instantly share code, notes, and snippets.

@ilagnev
Created February 4, 2014 16:17
Show Gist options
  • Save ilagnev/8806897 to your computer and use it in GitHub Desktop.
Save ilagnev/8806897 to your computer and use it in GitHub Desktop.
mysql db size
SELECT table_schema AS "Data Base Name",
sum( data_length + index_length ) / 1024 / 1024 AS "Data Base 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