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 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 [2019/09/30 09:51] (current) – [Configurare la replica master-master] niccolo | ||
---|---|---|---|
Line 50: | Line 50: | ||
</ | </ | ||
+ | Per vedere se si sono assegnati i permessi di replica: | ||
+ | |||
+ | < | ||
+ | SHOW GRANTS FOR ' | ||
+ | </ | ||
+ | |||
+ | Ovviamente è opportuno concedere i grant non dall' | ||
===== Sincronizzare il db ===== | ===== Sincronizzare il db ===== | ||
< | < | ||
-- Su server1 | -- Su server1 | ||
- | |||
USE exampledb; | USE exampledb; | ||
FLUSH TABLES WITH READ LOCK; | FLUSH TABLES WITH READ LOCK; | ||
Line 71: | Line 77: | ||
-- 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 85: | ||
-- 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