Database Errors when using the Default MySQL Storage Engine
症状
Errors when creating table schema during database migration or an upgrade
原因
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
ソリューション
- 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.
最終更新日 2012 年 11 月 21 日
Powered by Confluence and Scroll Viewport.