MySQL & InnoDB (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)
What are the key differences between InnoDB and MyISAM?
junior LevelMySQL
In Simple Words:
- InnoDB (Default standard since MySQL 5.5):
- Supports full ACID transactions (
COMMIT,ROLLBACK). - Row-level locking (high concurrency for OLTP).
- Foreign key constraints enforcement.
- Crash recovery via Redo logs and doublewrite buffers.
- Supports full ACID transactions (
- MyISAM (Legacy):
- No transaction support.
- Table-level locking only (a single write locks the entire table!).
- Fast table-wide
COUNT(*)because it maintains a fixed row counter, but prone to table corruption on unexpected power loss.