<keywords content="MySQL,WEB" />
SET PASSWORD FOR 'sonerezh'@'localhost' = PASSWORD('XXXXXT')
SELECT table_schema, round(sum(data_length+index_length)/1024/1024,4) AS "Size (MB)" FROM information_schema.tables GROUP BY table_schema;
# ex avec table : test SELECT table_name AS "Tables", round(((data_length + index_length) / 1024 / 1024), 2) "Size in MB" FROM information_schema.TABLES WHERE table_schema = "test";