When i restart any server from working master-master replication it stops working , what problems likely ? Do i need to set binlog-do-db variable on both servers ? Do i need to set replicate-db variable ?
"show master status " output:
on server 1:
+------------------+----------+--------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| mysql-bin.000001 | 107 | purpledocsdbv1 | |
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)
on server 2:
+------------------+----------+--------------+------------------+
| File | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| bin-log.000001 | 78 | | |
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)
When I restart any server from working master-master replication it stops working, what problems likely?
The problem that is listed in the Last_Error
column when you execute SHOW SLAVE STATUS
.
Do i need to set binlog-do-db variable on both servers?
No.
Do i need to set replicate-db variable?
No.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.