I have a large Mysql database. Its size is more than what I expected.
How can I find size of its tables ? I need to find that table makes the database size huge.
Thank you.
I have a large Mysql database. Its size is more than what I expected.
How can I find size of its tables ? I need to find that table makes the database size huge.
Thank you.
You can do it as below.
SELECT table_schema "Data Base Name",
sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB"
FROM information_schema.TABLES GROUP BY table_schema
use this query
show table status from <db_name>;
if your database name is users; then use this :
show table status from users;