● Engineering

MySQL get size of database

SELECT
table_schema 'Database Name',
sum(data_length + index_length) / 1024 / 1024 'Size(MB)'
FROM
information_schema.TABLES
GROUP BY table_schema;
· · ·
Niraj Chauhan
Niraj Chauhan writes here about software craftsmanship, running, and family life in Bengaluru.