Get expert answers and help others learn. Share your knowledge and build the community.
How to get the size of a database in MySQL?
MySQL Query for getting size of database in a schema
SELECT table_schema `your_database_name`, ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB" FROM information_schema.tables GROUP BY table_schema;
Be the first to help by answering this question!
Please login to submit an answer.
Start a new discussion and get answers from verified teachers & toppers.