Once again, I highly advise AGAINST doing any MySQL maintenance through scripts; including PHPMyAdmin, FusionBB, Threads, etc. Doing it through a script can tie up your webserver; do it through the command line, it'll go much MUCH faster, as it's done through MySQL directly.