Happens a lot these days, like when people (finally) discover the
virtues of InnoDB. Of course there's more to it than just the
conversion, for instance some server tuning will be required
also.
Anyway, there are a few methods:
- Most MySQL installations will have the
mysql_convert_table_formatscript (Perl) included. The script does not contain an option to tweak server parameters though. For instance, when converting to MyISAM (as an intermediate step for moving to innodb_file_per_table), index building will be much faster if you have a large myisam_sort_buffer_size setting. So you'd have to either tweak the script or make that change globally (SET GLOBAL myisam_sort_buffer_size=1024*1024*1024for 1G). I prefer to have such changes local to a setting as they can be dangerous, but in this case it should be ok since this particular buffer is only used for alter table and repairs.
…