MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old December 21st, 1999, 06:33 AM
rbergs
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I am developing a large MySQL database consisting of about 18 tables. It's a backend for a website & we charge our clients per megabyte per month. Therefore I need to know how much disk space the database is using.
I went to the /data/<database name> dir & found all of the files, which is fine. One table consists only of two columns, both of which are MEDIUMINT. There are 69 rows in this table. Yet for some reason it's taking up 1342992 bytes! All the other tables are far smaller, so does anyone know why this one is so memory hungary?

Reply With Quote
  #2  
Old December 21st, 1999, 08:42 AM
rod k
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Not a clue why it's doing that. Try dumping the table using mysqldump, then drop it from the database and restore it from the dump. That may clear it up.

Reply With Quote
  #3  
Old December 22nd, 1999, 02:32 AM
rbergs
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Yup, that did the trick.

The ISD file is now 483 bytes, so it's quite a reduction. It makes me wonder if doing a mysqldump and reload occasionaly is a good habit to get into?

Reply With Quote
  #4  
Old December 22nd, 1999, 06:49 AM
rod k
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
I don't think that's necessary. Have you had a lot of data shuffle in and out of that table? If so, it's possible that an OPTIMIZE might have cleared it up. Dang, wish I'd thought of that sooner.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Size of a MySQL Table


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway