You get a bonus - 1 coin for daily activity. Now you have 1 coin

How to find the size of databases in MySQL

Practice




How to find out the size of databases in MYSQL
USE informa tion_schema;

SELECT table_schema AS ts ,sum( DATA_LENGTH) as dl,sum( INDEX_LENGTH) as il, sum( data_length + index_length ) as sl
FROM informat ion_schema.TABLES
where table_schema=:namebd
#or if for all then like this GROUP BY table_schema;

Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Databases - MySql (Maria DB)"

Terms: Databases - MySql (Maria DB)