This commit is contained in:
2026-02-25 13:11:56 +01:00
parent 985b2a78cb
commit f40c4d904e
7 changed files with 238 additions and 20 deletions

View File

@@ -0,0 +1,10 @@
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;
# List database variables
SHOW VARIABLES;
# Get path where databases are stored
SHOW VARIABLES LIKE 'datadir';