MySQL database housekeeping
Wednesday, 11 April 2007
As part of regular ongoing database housekeeping, you should repair and optimise your MySQL tables on a regular basis.
To repair one or more tables:
repair table table1, table2, table3, table4, table5;
To optimise one or more tables:
optimize table table1, table2, table3, table4, table5;
Depending on how dynamic your database is, you should probably aim to do both of the above at least once a month. And always repair your tables before your optimise them.
|