1 Answer
MySQL uses the information_schema virtual database to store information about your databases and other settings. You can query it to gather information about size of databases and tables as shown:
#mysql -u root -p
MariaDB [(none)]> SELECT table_schema AS "Database Name",
FROM information_schema.tables
GROUP BY table_schema;
Your Answer