MyISAM vs InnoDB: mysql 的两种存储引擎的区别
- InnoDB 有行级别的锁,而 MyISAM 只能锁定到表级别。
- InnoDB 有更好的故障恢复机制.
- MyISAM 有全文索引,InnoDB 直到5.6(Feb 2013)才拥有。
- InnoDB 实现了事物、外键和关系限制, MyISAM 没有.
ref: https://dba.stackexchange.com/questions/1/what-are-the-main-differences-between-innodb-and-myisam
总的来说,引用完整性和事物才是数据库的本质,所以说:“MyISAM is a file system that understands SQL. There’s no comparison. If you want a database engine with MySQL, use InnoDB.”
ref: https://jeremystein.com/journal/innodb-versus-myisam-no-comparison/