I'm ready to move from MyISAM to InnoDB but wanted to know if there was a full list of things to look for? For example, I haven't seen any list mention that running DISABLE KEYS
on an InnoDB table will throw a warning, except the manual page for ALTER TABLE
. It's that kind of thing I need to know about before converting over. I thought I'd be fine with my queries but apparently not.
Gotchas When Converting from MyISAM to InnoDB
innodbmyisamMySQL
Related Question
- Mysql – Speeding up thesqldump / reload
- Mysql – Converting live MyISAM table to InnoDB
- MySQL Performance – Why Simple SELECTs on InnoDB Are 100x Slower Than on MyISAM
- MySQL – High CPU Usage Due to ‘Copying to tmp table on disk’ and ‘Converting HEAP to MyISAM’
- MySQL – Preventing Index Corruption
- MySQL – Potential Issues When Converting MyISAM to InnoDB
- Mysql – Zero Date Values & Converting Entire DB From MyISAM to InnoDB
Best Answer
Here are some gotchas
Memory Usage
MyISAM
InnoDB
Here are some queries I wrote and posted earlier on how to choose a proper size for the MyISAM Key Cache and InnoDB Buffer Pool.
FULLTEXT Indexes
MyISAM
InnoDB
MySQL 5.5 and back
To locate which MyISAM tables have a FULLTEXT index run this query:
Whatever comes out of this query cannot be converted to InnoDB until you upgrade to MySQL 5.6.
OPTIMIZE TABLE
MyISAM
InnoDB