Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
SELECT table_schema "DB Name", sum(data_length + index_length) / 1024 / 1024 "Data Size (MB)", sum(data_free) / 1024 / 1024 "Free space (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
You can’t perform that action at this time.