Created
July 3, 2015 17:31
-
-
Save kogoto/75b34ec5b1e9402c25b4 to your computer and use it in GitHub Desktop.
[MySQL][クエリ]容量確認
This file contains 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, | |
Sum(data_length + index_length) / 1024 / 1024 AS MB | |
FROM information_schema.tables | |
GROUP BY table_schema | |
ORDER BY Sum(data_length + index_length) DESC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment