Here’s how to get MySQL database size for all or a specific database. You can use the following SQL query to get it.
size
How to get MySQL table size for tables in database?
Get MySQL table size for a table in your database with the following SQL query. MySQL table size is the sum of data length and index length.