Last active
July 2, 2021 12:55
-
-
Save KrustyHack/ead986762b2e7652e79cfbd48f2eb048 to your computer and use it in GitHub Desktop.
Cloud SQL MySQL - 5 biggest databases
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 AS `Database`, TABLE_NAME AS `Table`, ROUND((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024) AS `Size (MB)` FROM information_schema.TABLES ORDER BY (DATA_LENGTH + INDEX_LENGTH) DESC LIMIT 5; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment