Reputation: 2126
When I testing some mysql commit and rollback procedure, I found some problems about commit and rollback at MyISAM Engine. Can commit or rollback not working on MyISAM Engine? May I know different between InnoDB and MyISAM Engine.
Upvotes: 3
Views: 6727
Reputation: 15603
MyIASM does not support the rollback and commit, you need to use the InnoDB for that.
Difference between Innodb and MyISAM:
First major difference I see is that InnoDB implements row-level lock while MyISAM can do only a table-level lock. You will find better crash recovery in InnoDB. However, it doesn't have FULLTEXT search indexes, as does MyISAM. InnoDB also implements transactions, foreign keys and relationship constraints while MyISAM does not.
The list can go a bit further. Yet, they both have their unique advantages in their favor and disadvantages against each other. Each of them is more suitable in some scenarios than the other.
So to summarize:
Upvotes: 14
Reputation: 11
InnoDB implements transactions. MyISAM does not. MyISAM is auto-commit.
Upvotes: 1
Reputation: 91
MyISAM doesn't support real transactions (as if everything were run with autocommit enabled):
http://dev.mysql.com/doc/refman/5.7/en/ansi-diff-transactions.html
Upvotes: 3
Reputation: 1394
First answer in google... "commit or rollback not working on MyISAM"
http://forums.mysql.com/read.php?21,68686,68701#msg-68701
Sometimes Users should make an effort to search for sth than writing.
Upvotes: 1