How to get the DB size in MySQL
How to get the DB size in MySQL
SELECT table_schema, round(sum(data_length + index_length) / 1024 / 1024, 1) "MB"
FROM information_schema.tables
where table_schema = database() -- the current schema
GROUP BY table_schema;
Comments
Post a Comment