Solved

Get size of MySQL table

Posted on 2007-11-13
8
6,371 Views
Last Modified: 2008-01-09
How do I get the size of a MySQL table?
0
Comment
Question by:allelopath
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
  • +1
8 Comments
 
LVL 4

Accepted Solution

by:
jcoombes earned 350 total points
ID: 20275295
If you want the number of rows, then just

select count(*) from table

will do it.

If you want the physical size of the table then:

SHOW TABLE STATUS

might do what you want, see here:  http://dev.mysql.com/doc/refman/5.0/en/show-table-status.html
0
 
LVL 9

Expert Comment

by:ysnky
ID: 20275489
>>size of a MySQL table
what do you mean?
0
 
LVL 9

Assisted Solution

by:ysnky
ysnky earned 150 total points
ID: 20275536
for "show table status" usage in php;
http://www.modwest.com/help/kb6-199.html
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 1

Author Comment

by:allelopath
ID: 20275623
by table size I want to know how much space the data I have in there is occupying.

show table status shows a data_length of 15,800,991,744 (almost 16 gb)

I'm confused in that here:
http://jeremy.zawodny.com/blog/archives/000796.html
says that the limit is 4 gb.
The article is 4 years old, so it may be obsolete.
0
 
LVL 92

Expert Comment

by:objects
ID: 20275723
limit isn't 4gb, i have mysql tables over 50gb
0
 
LVL 9

Assisted Solution

by:ysnky
ysnky earned 150 total points
ID: 20277958
0
 
LVL 1

Author Comment

by:allelopath
ID: 20280541
How do I determine if the win32 system is FAT or NTFS?
0
 
LVL 4

Assisted Solution

by:jcoombes
jcoombes earned 350 total points
ID: 20280804
0

Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
This video teaches viewers about errors in exception handling.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question