Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. SELECT
  2. table_schema 'Database Name',
  3. SUM(data_length + index_length) 'Size in Bytes',
  4. ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) 'Size in MiB'
  5. FROM information_schema.tables
  6. GROUP BY table_schema;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement