blog.broncotoxique.com

Juste another geek’s website

Get the size of a mysql database

Request that will give you the size of the different DB of your MySQL instance.

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

Source : Stackoverflow : questions/1733507


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *