1

I have a database and that contain many tables , but all of them store text and full tables size is less than 10 MB , but the database file on server have larger than 1 GB

The tables uses MyIASM , where is the problem ?

thanks

2
  • Which database file? is it ibdata1? Do you have any InnoDB tables? Did you have any such tables before and have you deleted them? If so, have a look here: stackoverflow.com/questions/3456159/… Commented Aug 29, 2013 at 10:03
  • @Ata maybe you should look if you can keep the TEXT datatype in one table. table fragmentation is caused by deleting/updating from table that have non fixed sizes like varchar / text columns. Commented Sep 20, 2013 at 18:36

1 Answer 1

2

You can use OPTIMIZE TABLE for reducing disk usage on MyISAM tables (usually after deleting lot of data from them or doing major changes in structure).

For InnoDB, that is quite more challenging, see Howto: Clean a mysql InnoDB storage engine?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.