Database Errors when using the Default MySQL Storage Engine
Symptoms
Errors when creating table schema during database migration or an upgrade
Cause
The default storage engine for MySQL is MyISAM. It does not support referential integrity, foreign key constraints or transactions, so it may cause data corruption. See - http://dev.mysql.com/doc/refman/5.1/en/storage-engines.html
Resolution
- Set the storage engine by passing the '--default-storage-engine=INNODB' option when starting the session.
Or - Alter the existing table storage engine to use INNODB type
ALTER TABLE <tablename> ENGINE=INNODB;
- Make the default MySQL Server setting by adding this option to the my.ini (or my.cnf) configuration file.
Last modified on Nov 21, 2012
Powered by Confluence and Scroll Viewport.