CyberX

mobile

How to check MySQL dat database size

Some times, when we use not standard solutions for database management like Maria DB, we have not any solutions with GUI to see some information such as Data Bases size allocated on drive and we you need to know some special and useful commands.

For example with next code we can see how many size of Data Base are busy on drive.


SELECT table_schema "*", 
ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB" 
FROM information_schema.tables 
GROUP BY table_schema;

Code bellow after execution show detail information about Data Bases size.

Reviews

You can write here as guest with moderation. Please confirm your person if you have an account or register.

Add a review as guest
Lets draw: