Created
July 6, 2011 21:29
-
-
Save jorgemsrs/1068375 to your computer and use it in GitHub Desktop.
Determine MySQL's fragmented tables
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, | |
Data_free | |
FROM | |
information_schema.TABLES | |
WHERE | |
TABLE_SCHEMA NOT IN ('information_schema','mysql') | |
AND Data_free > 0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment