What is InnoDB and MyISAM in MySQL?

前端 未结 8 676
长情又很酷
长情又很酷 2020-12-07 09:19

What is InnoDB and MyISAM in MySQL ?

8条回答
  •  北海茫月
    2020-12-07 09:50

    They are storage engines.

    http://dev.mysql.com/doc/refman/5.1/en/storage-engines.html

    MyISAM: The default MySQL storage engine and the one that is used the most in Web, data warehousing, and other application environments. MyISAM is supported in all MySQL configurations, and is the default storage engine unless you have configured MySQL to use a different one by default.

    InnoDB: A transaction-safe (ACID compliant) storage engine for MySQL that has commit, rollback, and crash-recovery capabilities to protect user data. InnoDB row-level locking (without escalation to coarser granularity locks) and Oracle-style consistent nonlocking reads increase multi-user concurrency and performance. InnoDB stores user data in clustered indexes to reduce I/O for common queries based on primary keys. To maintain data integrity, InnoDB also supports FOREIGN KEY referential-integrity constraints.

提交回复
热议问题