Back
Execute the following query and you will apparently get what you're expecting for:
SELECT table_schema "DB Name", ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB" FROM information_schema.tables GROUP BY table_schema;
Looking for a SQL Tutorial? Join the SQL Course to gain more knowledge on SQL.
If you want to learn MySQL then do check out the below MySQL tutorial video for better understanding:
31k questions
32.8k answers
501 comments
693 users