MBで表示する。
SELECT table_schema AS database_name, sum(data_length + index_length) / 1024 / 1024 AS MB FROM information_schema.tables GROUP BY table_schema ORDER BY sum(data_length + index_length) DESC;
天は自ら助くる者を助く
MBで表示する。
SELECT table_schema AS database_name, sum(data_length + index_length) / 1024 / 1024 AS MB FROM information_schema.tables GROUP BY table_schema ORDER BY sum(data_length + index_length) DESC;