From 3e57cb15222c0561fec26f096cf92f84c85e389d Mon Sep 17 00:00:00 2001 From: jlecour Date: Thu, 11 Jun 2020 09:55:10 +0200 Subject: [PATCH] =?UTF-8?q?pr=C3=A9sentation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HowtoMySQL.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/HowtoMySQL.md b/HowtoMySQL.md index c5dcce3d..81c2d51d 100644 --- a/HowtoMySQL.md +++ b/HowtoMySQL.md @@ -750,9 +750,11 @@ 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 : +Si on préfère avoir le détail entre taille de données et d'index : +~~~{.sql} 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)", @@ -761,7 +763,6 @@ FROM information_schema.tables GROUP BY table_schema; ~~~ - Pour lister la taille de toutes les tables de toutes les bases : ~~~{.sql}