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"
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: