How do I reclaim Space from the INNODB (Ibdata) file?

Posted on March 16, 2008. Filed under: MySQL | Tags: , , , |

This is the major issue with the Innodb engine, the bulk delete/truncate operation will deleted the data but it is not reclaiming the space from the Innodb file. There are some techniques to reclaim the space but please make sure you must have the extra space on your servers.

1. Alter Database Set Engine = Innodb

2. Instead of truncate use the DROP statement.

3. Migrate your MySQL databases to another server MySQL server using MySQL dump utility and remove the ibdata file. Further migrate the backup database to orginal server which will makes the ibdata1 file fully de-fragmented.

Make a Comment

Make A Comment: ( None so far )

blockquote and a tags work here.

    About

    Knowledge based articles for the SQL Server, MySQL and Oracle

    RSS

    Subscribe Via RSS

    • Subscribe with Bloglines
    • Add your feed to Newsburst from CNET News.com
    • Subscribe in Google Reader
    • Add to My Yahoo!
    • Subscribe in NewsGator Online
    • The latest comments to all posts in RSS
    • Subscribe in Rojo

    Meta

Liked it here?
Why not try sites on the blogroll...