Skip to content

Instantly share code, notes, and snippets.

@jorgemsrs
Created July 6, 2011 21:29
Show Gist options
  • Save jorgemsrs/1068375 to your computer and use it in GitHub Desktop.
Save jorgemsrs/1068375 to your computer and use it in GitHub Desktop.
Determine MySQL's fragmented tables
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