Skip to content

Instantly share code, notes, and snippets.

@gabidavila
Created September 17, 2013 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabidavila/6589281 to your computer and use it in GitHub Desktop.
Save gabidavila/6589281 to your computer and use it in GitHub Desktop.
Tamanho dos bancos de dados de um determinado host
SELECT
table_schema "Nome DB",
SUM( data_length + index_length) / 1024 / 1024 "Tamanho em 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