3

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.

4 Answers 4

14

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:

  • InnoDB has row-level locking, MyISAM can only do full table-level locking.
  • InnoDB has better crash recovery.
  • MyISAM has FULLTEXT search indexes, InnoDB doesn't.
  • InnoDB implements transactions, foreign keys and relationship constraints, MyISAM does not.
1
3

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

1
  • Look's like the "Page Not Found".
    – Arun J
    Jan 21, 2020 at 7:54
1

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.

1
  • Really appreciate for suggestion. I already googling. But, I want to see different point of view :).
    – 502_Geek
    Jul 29, 2013 at 7:46
1

InnoDB implements transactions. MyISAM does not. MyISAM is auto-commit.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.