943,545 Members | Top Members by Rank

Ad:
  • MySQL Discussion Thread
  • Unsolved
  • Views: 1577
  • MySQL RSS
Apr 7th, 2009
0

size of database

Expand Post »
how can i find size of my database

what is the max table size in mysql

is table size shown is in terms of kb or mb in mysql by default

actually dis is the max_data length shown using "show table status" 281474976710655. means data size is shown in kb or mb.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
srpa01red is offline Offline
19 posts
since Mar 2009
Apr 7th, 2009
0

Re: size of database

Click to Expand / Collapse  Quote originally posted by srpa01red ...
actually dis is the max_data length shown using "show table status" 281474976710655. means data size is shown in kb or mb.
I thought Max_data_length was in bytes, but I could be wrong. Also the maximum size of a table is usually determined by the operating system and not MySQL itself, in most cases I think this is around 2GB.
Last edited by Upsilon; Apr 7th, 2009 at 4:44 am.
Reputation Points: 14
Solved Threads: 3
Newbie Poster
Upsilon is offline Offline
15 posts
since Apr 2009
Apr 11th, 2009
0

Re: size of database

Please find here the table limit (http://dev.mysql.com/doc/refman/5.0/en/full-table.html). You can increase the limit by ALTERing Max_data_length.

Max_data_length is in bytes as Upsilon said.
Reputation Points: 29
Solved Threads: 47
Posting Whiz
mwasif is offline Offline
312 posts
since Dec 2007
Apr 13th, 2009
0

Re: size of database

Try this for Database Size or Table Size :

sql Syntax (Toggle Plain Text)
  1. SELECT TABLE_NAME,ROUND((DATA_LENGTH/1024)/1024) AS DATA_SIZE,ROUND((INDEX_LENGTH/1024)/1024) AS INDEX_SIZE,ROUND(((DATA_LENGTH/1024)/1024) + ((INDEX_LENGTH/1024)/1024)) AS TOTAL_TABLE_SIZE
  2. FROM information_schema.TABLES
  3. GROUP BY TABLE_NAME
Last edited by peter_budo; Apr 15th, 2009 at 7:39 am. Reason: Keep It Organized - For easy readability, always wrap programming code within posts in [code] (code blocks) and [icode] (inline code) tags. Keep It Spam-Free Do not spam, advertise, plug your website.
Reputation Points: 22
Solved Threads: 9
Junior Poster in Training
varmadba is offline Offline
83 posts
since Jun 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in MySQL Forum Timeline: insert dummy data
Next Thread in MySQL Forum Timeline: like statment and upper / lower case





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC