If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > Table size in Mb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-08-08, 02:28
ankur02018 ankur02018 is offline
Registered User
 
Join Date: Jun 2007
Posts: 189
Smile Table size in Mb

Hi ,
How to find table size in Mb for particular database
Reply With Quote
  #2 (permalink)  
Old 09-08-08, 14:26
snorp snorp is offline
Registered User
 
Join Date: Apr 2004
Location: Europe->Sweden->Stockholm
Posts: 71
You could use SHOW TABLE STATUS (see the MySQL manual, section 12.5.5.29).

Code:
SHOW TABLE STATUS FROM database;
Reply With Quote
  #3 (permalink)  
Old 09-10-08, 13:57
Jonathan Kinney Jonathan Kinney is offline
Registered User
 
Join Date: Aug 2008
Posts: 5
Or another lazy way to get that information is to ssh into the server and use the "du -sh" command like so:

du -sh /var/lib/mysql/*

That is the most common path to the actual file data stored on the disk for the MySQL databases. It will give you a real size on disk breakdown of all of your databases.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On