What's the safest way to convert table with InnoDB to MyISAM?

hungneox picture hungneox · Dec 19, 2011 · Viewed 10.2k times · Source

My database is currently using the InnoDB engine. Now I want to add the fulltext search feature, which is why I want to convert my tables to MyISAM. But doing so breaks all foreign keys. How can I change my table engines to MyISAM safely?

How can I use SELECT...JOIN after I change my tables to the MyISAM engine?

ALTER TABLE jobs ENGINE = MyISAM;
Cannot delete or update a parent row: a foreign key constraint fails

Answer

Tudor Constantin picture Tudor Constantin · Dec 19, 2011

I'd recommend you to do a dump of the db, change all the text from that file from InnoDB to MyISAM, then load the modified file