size of database

Reply

Join Date: Mar 2009
Posts: 19
Reputation: srpa01red is an unknown quantity at this point 
Solved Threads: 0
srpa01red srpa01red is offline Offline
Newbie Poster

size of database

 
0
  #1
Apr 7th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Apr 2009
Posts: 15
Reputation: Upsilon is an unknown quantity at this point 
Solved Threads: 3
Upsilon's Avatar
Upsilon Upsilon is offline Offline
Newbie Poster

Re: size of database

 
0
  #2
Apr 7th, 2009
Originally Posted by srpa01red View Post
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.
http://file2.ws/ - Convert any file into a webpage (doc, ppt, pdf, jpg, png, html, java, zip, csv, rtf and more)
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 190
Reputation: mwasif is an unknown quantity at this point 
Solved Threads: 25
mwasif mwasif is offline Offline
Junior Poster

Re: size of database

 
0
  #3
Apr 11th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 79
Reputation: varmadba is an unknown quantity at this point 
Solved Threads: 8
varmadba varmadba is offline Offline
Junior Poster in Training

Re: size of database

 
0
  #4
Apr 13th, 2009
Try this for Database Size or Table Size :

  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.
:- Varma

We are Happy to inform launch of a new site with loads of database related information Site offers wide range of functionality Forums,Blogs,Articles,Editorials and much more
http://www.sqllibrarian.info/
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC