Created
August 16, 2023 09:39
-
-
Save vinaghost/da1a70355b202d21f35a13ff184255ee to your computer and use it in GitHub Desktop.
how many mb did my database use ? (mysql)
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 "DB name (table_schema)", | |
| sum( data_length + index_length ) / 1024 / 1024 "DB size in MB" from | |
| information_schema.tables group by table_schema; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment