Skip to main content
InterviewHubPRO
Section Overview
Q41

Question 41 of 50

Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

82%
MySQL & InnoDB (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)

MySQL Binary Log (Binlog) Formats: `ROW` vs `STATEMENT` vs `MIXED`.

senior LevelFormsDatabases & SQLMySQL

In Simple Words: The binlog records database modifications for replication and Point-In-Time Recovery:

  • STATEMENT: Records raw SQL queries. Non-deterministic functions (NOW(), UUID(), RAND()) can produce different results on replicas!
  • ROW (Modern Default): Records the exact before-and-after binary row images. Safe, deterministic, and recommended for all modern production systems.
  • MIXED: Uses statement format by default, switching to row format for non-deterministic queries.