Database Errors when using the Default MySQL Storage Engine

Still need help?

The Atlassian Community is here for you.

Ask the community

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;
    
    Or
  • 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

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.