1

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.

3
  • what you mean size here Commented Apr 19, 2013 at 6:44
  • 1
    Do you use phpmyadmin? It should have this info available in the tables' list. Commented Apr 19, 2013 at 6:47
  • Or this query from stackoverflow.com/questions/1733507/… Commented Apr 19, 2013 at 6:49

2 Answers 2

2

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 

Read Here

Sign up to request clarification or add additional context in comments.

Comments

-1

use this query

show table status from <db_name>; 

if your database name is users; then use this :

show table status from users; 

Check This - Mysql Manual

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.