Skip to content

Instantly share code, notes, and snippets.

@Veve2
Created June 14, 2017 08:53
Show Gist options
  • Save Veve2/b2a5b42f79976a7667b85dcd44059723 to your computer and use it in GitHub Desktop.
Save Veve2/b2a5b42f79976a7667b85dcd44059723 to your computer and use it in GitHub Desktop.
Find MySQL table size
SELECT
table_name AS `Table`,
round(((data_length + index_length) / 1024 / 1024), 2) `Size in MB`
FROM information_schema.TABLES
WHERE table_schema = "database"
AND table_name = "cache_form";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment