Atomicity: MyISAM vs InnoDB


Background

A series of database operations is called a transaction. An atomic transaction is a series of database operations which either all occur, or all do not occur. If it succeeds, all associated changes on all rows it touches are made permanent. If it fails, none of the changes are made.

Objectives

Steps

  1. Create a Database
  2. Create an InnoDB Table
  3. Test Atomicity
  4. Another Atomicity Test
  5. Create an MyISAM Table
  6. Test with MyISAM
  7. Exit
  8. Congratulations! You have successfully tested and compared atomicity with the MyISAM and InnoDB storage engines.