0
0
MySQLquery~5 mins

Replication basics in MySQL - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is database replication?
Database replication is the process of copying and maintaining database objects, like tables and data, from one database server (master) to another (slave) to keep them synchronized.
Click to reveal answer
beginner
What roles do the master and slave servers play in MySQL replication?
The master server records all changes to its data and sends them to the slave server. The slave server receives these changes and applies them to its own data to stay up-to-date.
Click to reveal answer
intermediate
What is the binary log (binlog) in MySQL replication?
The binary log is a file on the master server that records all changes made to the database. It is used to send these changes to the slave server for replication.
Click to reveal answer
beginner
Why is replication useful in real life?
Replication helps keep copies of data in different places for backup, faster reading by spreading load, and high availability if one server fails.
Click to reveal answer
advanced
What is the difference between asynchronous and semi-synchronous replication?
In asynchronous replication, the master does not wait for the slave to confirm it received changes. In semi-synchronous replication, the master waits for at least one slave to confirm before continuing, improving data safety.
Click to reveal answer
In MySQL replication, which server sends the data changes to the other?
AMaster server
BSlave server
CBoth servers simultaneously
DNeither server
What does the binary log (binlog) store in MySQL replication?
AUser passwords
BAll database changes
CBackup files
DServer configuration
Which of these is NOT a benefit of replication?
AHigh availability
BLoad balancing for reads
CData backup
DFaster writes on master
In asynchronous replication, when does the master consider a transaction complete?
AImmediately after writing to binlog
BAfter slave confirms receipt
CAfter slave applies changes
DAfter backup completes
What is the main role of the slave server in replication?
ATo send data changes to master
BTo backup the master server
CTo receive and apply changes from master
DTo manage user access
Explain how MySQL replication works between master and slave servers.
Think about the flow of data changes from one server to another.
You got /4 concepts.
    List three practical reasons why database replication is important.
    Consider what problems replication helps solve in real life.
    You got /3 concepts.