How to get the DB size in MySQL


How to get the DB size in MySQL


SELECT table_schema, round(sum(data_length + index_length) / 1024 / 1024, 1) "MB"
FROM   information_schema.tables
where table_schema = database() -- the current schema
GROUP  BY table_schema;

Comments

Popular posts from this blog

Add GitHub Repository to DBeaver CE Secured with SSH Protocol

Keyboard Shortcut to "Toggle Line Comments" in DBeaver

DBeaver Shortcuts