MySQL database size

How do I find out how large my MySQL database is?

To find out how much space the current database is using, start a MySQL console on the database in question, then run this:

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