chat box....

Monday, September 17, 2012

Nice query to find the space occupied by different databases in mysql server

SELECT table_schema "Data Base Name", SUM( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB" FROM information_schema.TABLES GROUP BY table_schema ;