Created
May 21, 2014 17:29
-
-
Save igniteflow/d6a67d5aa15f9b1d4297 to your computer and use it in GitHub Desktop.
MySQL: Show how much space tables are using in descending order
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT `TABLE_SCHEMA`, `TABLE_NAME`, `TABLE_ROWS`, `DATA_LENGTH`, `INDEX_LENGTH`, `DATA_FREE` FROM `TABLES` WHERE `TABLE_SCHEMA` LIKE "my_database" ORDER BY `DATA_LENGTH` DESC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment