How to see all table lists from a database schema ?
show tables;
How to count total number of tables of a MySQL schema ?
SELECT count(*) AS TOTALNUMBEROFTABLES FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'Your_database_name';
How to see table size of MySQL database ?
SELECT
TABLE_NAME AS `Table`,
ROUND((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024) AS `Size (MB)`
FROM
information_schema.TABLES
WHERE
TABLE_SCHEMA = "your_database_name"
AND
TABLE_NAME = "book"
ORDER BY
(DATA_LENGTH + INDEX_LENGTH)
DESC;
Note: If you want to see list of all tables with size, then remove the AND TABLE_NAME = “book” from your query. That will show list of all tables with their size in Mega Bytes.