MySQL - InnoDB vs MyISAM

后端 未结 2 471
梦如初夏
梦如初夏 2020-12-15 04:57

I read the following article yesterday (http://blogs.sitepoint.com/2010/11/19/mysql-mistakes-php-developers/) and it wrote the following:

MySQL has a num

2条回答
  •  盖世英雄少女心
    2020-12-15 05:33

    Yes, you can swap in and out engines like used underwear, if you like, without much trouble. Just change it in phpmyadmin.

    But I wouldn't change it for the sake of changing it. Do you need to use foreign keys? Change it. Do you need row-level-locking instead of table-locking? Change it.

    It's worth noting that there are good reasons to use MyISAM, too. Take a look at FULLTEXT indexing. You can't do that with InnoDB.

    UPDATE

    As of MySQL 5.6 FULLTEXT has been implemented for InnoDB tables as well. Here is the manual.

提交回复
热议问题