Created
January 4, 2016 22:06
-
-
Save stucka/fc14d32ad13dd80a3996 to your computer and use it in GitHub Desktop.
Check MySQL for defragmentation
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 ENGINE, table_schema as DB, TABLE_NAME,Round( DATA_LENGTH/1024/1024) as data_length , round(INDEX_LENGTH/1024/1024) as index_length, round(DATA_FREE/ 1024/1024) as data_free from information_schema.tables; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment