22
0
Fork 0

Complément taille données/index

This commit is contained in:
Ludovic Poujol 2019-11-07 16:28:34 +01:00
parent 53e706d96c
commit 7c9b22220e
1 changed files with 10 additions and 0 deletions

View File

@ -744,8 +744,18 @@ mysql> SELECT table_schema "DB Name",
Round(Sum(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB"
FROM information_schema.tables
GROUP BY table_schema;
; Si on préfère avoir le détail entre taille de données et d'index :
mysql> SELECT table_schema "DB Name",
Round(Sum(data_length) / 1024 / 1024, 1) "Data (in MB)",
Round(Sum(index_length) / 1024 / 1024, 1) "Index (in MB)",
Round(Sum(data_length + index_length) / 1024 / 1024, 1) "Total size in MB"
FROM information_schema.tables
GROUP BY table_schema;
~~~
Pour lister la taille de toutes les tables de toutes les bases :
~~~{.sql}