SQL to check MySQL database size 15.Jan
Here is a simple select script to check actual MySQL database size on disk, in bytes. I hope you find it useful.
select SUM(data_length) + SUM(index_length) as size
from information_schema.tables
where table_schema = ‘mydb’;

