?
Solved

Get size of MySQL table

Posted on 2007-11-13
8
Medium Priority
?
6,376 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 1400 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 600 total points
ID: 20275536
for "show table status" usage in php;
http://www.modwest.com/help/kb6-199.html
0
Independent Software Vendors: 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 600 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 1400 total points
ID: 20280804
0

Featured Post

Industry Leaders: 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!

Question has a verified solution.

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

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
The viewer will learn how to implement Singleton Design Pattern in Java.
Suggested Courses
Course of the Month13 days, 22 hours left to enroll

801 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