User Tools

Site Tools


mysql_master_slave_replication

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mysql_master_slave_replication [2017/06/01 06:12] luke7858mysql_master_slave_replication [2024/05/23 07:26] (current) – external edit 127.0.0.1
Line 11: Line 11:
 Slave connects to master, copies the binary logs over and stores them locally in relay logs. Slave connects to master, copies the binary logs over and stores them locally in relay logs.
 \\ \\
-<sxh bash>+<code>
 +------------------+              +------------------+ +------------------+              +------------------+
 +--------+                      +---------+        | +--------+                      +---------+        |
-|MySQL           |              |MySQL    |        | +|MySQL   -----   |              |MySQL    |        | 
-|Master         |              |Slave    |        | +|Master     |   |              |Slave    |        | 
-+--------+         |     IO       +---------+        |++--------+    \/   |     IO       +---------+        |
 |      Binary Logs | <--------->  |Relay Logs        | |      Binary Logs | <--------->  |Relay Logs        |
 +------------------+              +------------------+ +------------------+              +------------------+
-</sxh>+</code>
 \\ \\
 \\ \\
Line 26: Line 26:
 This thread reads events from the relay logs stored locally on the slave and applies them.  This thread reads events from the relay logs stored locally on the slave and applies them. 
 \\ \\
-<sxh bash>+<code>
 +------------------+ +------------------+
 +---------+        | +---------+        |
Line 34: Line 34:
 |Relay Logs +---+  + |Relay Logs +---+  +
 +-----------------+ +-----------------+
-</sxh>+</code>
 \\ \\
 More information can be found: [[https://www.percona.com/blog/2013/01/09/how-does-mysql-replication-really-work/]] More information can be found: [[https://www.percona.com/blog/2013/01/09/how-does-mysql-replication-really-work/]]
mysql_master_slave_replication.1496297574.txt.gz · Last modified: 2024/05/23 07:26 (external edit)

Except where otherwise noted, content on this wiki is licensed under the following license: Public Domain
Public Domain Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki