doc:appunti:linux:sa:mysql_replica_master_master
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
doc:appunti:linux:sa:mysql_replica_master_master [2011/09/08 12:52] – [Configurare la replica master-master (su un solo database)] niccolo | doc:appunti:linux:sa:mysql_replica_master_master [2011/09/08 12:54] – [Sincronizzare il db] niccolo | ||
---|---|---|---|
Line 54: | Line 54: | ||
< | < | ||
-- Su server1 | -- Su server1 | ||
- | |||
USE exampledb; | USE exampledb; | ||
FLUSH TABLES WITH READ LOCK; | FLUSH TABLES WITH READ LOCK; | ||
Line 71: | Line 70: | ||
-- Prendere nota dello status. | -- Prendere nota dello status. | ||
UNLOCK TABLES; | UNLOCK TABLES; | ||
- | CHANGE MASTER TO MASTER_HOST=' | + | CHANGE MASTER TO MASTER_HOST=' |
- | ', MASTER_LOG_POS=106; | + | |
+ | | ||
START SLAVE; | START SLAVE; | ||
SHOW SLAVE STATUS; | SHOW SLAVE STATUS; | ||
Line 78: | Line 78: | ||
-- Su server1 | -- Su server1 | ||
STOP SLAVE; | STOP SLAVE; | ||
- | CHANGE MASTER TO MASTER_HOST=' | + | CHANGE MASTER TO MASTER_HOST=' |
+ | | ||
+ | | ||
START SLAVE; | START SLAVE; | ||
SHOW SLAVE STATUS; | SHOW SLAVE STATUS; |
doc/appunti/linux/sa/mysql_replica_master_master.txt · Last modified: 2019/09/30 09:51 by niccolo