MyIsam engine transaction support

前端 未结 2 1779
天命终不由人
天命终不由人 2020-11-28 14:31

I was testing transaction support in innoDB tables, and just for the curriosity I tried to run the same transaction on MyIsam table, and surprisingly it worked. I am assumin

2条回答
  •  执笔经年
    2020-11-28 14:54

    MyIsam tabels were not built for this. Not even in the 5+ versions. It only was meant to store data. It gives you no guarantee for transactions or data recovery. You should use InnoDB for this and, if needed, use MyIsam for replication purposes (it's faster to retrieve data with MyIsam tables since there's no cross-table checks).

    You may read this post from MySQL http://forums.mysql.com/read.php?21,68686,69229#msg-69229

提交回复
热议问题