Размер таблиц в MySQL
1 2 3 4 |
SELECT table_schema as "db name", round(sum(data_length + index_length) / 1024 / 1024, 1) "db size (MB)" FROM information_schema.tables GROUP BY table_schema; |
1 2 3 4 |
SELECT table_schema as "db name", round(sum(data_length + index_length) / 1024 / 1024, 1) "db size (MB)" FROM information_schema.tables GROUP BY table_schema; |