Skip to content

Instantly share code, notes, and snippets.

@vinaghost
Created August 16, 2023 09:39
Show Gist options
  • Select an option

  • Save vinaghost/da1a70355b202d21f35a13ff184255ee to your computer and use it in GitHub Desktop.

Select an option

Save vinaghost/da1a70355b202d21f35a13ff184255ee to your computer and use it in GitHub Desktop.
how many mb did my database use ? (mysql)
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