簡體   English   中英

MYSQL主-主復制

[英]MYSQL master-master replication

當我從正常的主復制復制中重新啟動任何服務器時,它停止工作,可能是什么問題? 我是否需要在兩個服務器上都設置binlog-do-db變量? 我是否需要設置復制數據庫變量?

“顯示主狀態”輸出:

在服務器1上:

+------------------+----------+--------------+------------------+
| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| mysql-bin.000001 |      107 | purpledocsdbv1      |                  |
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)

在服務器2上:

+------------------+----------+--------------+------------------+
| File             | Position | Binlog_Do_DB | Binlog_Ignore_DB |
+------------------+----------+--------------+------------------+
| bin-log.000001 |      78 |       |                  |
+------------------+----------+--------------+------------------+
1 row in set (0.00 sec)

當我從正常的主復制復制中重新啟動任何服務器時,它將停止工作,可能是什么問題?

當您執行SHOW SLAVE STATUS時, Last_Error列中列出的問題。

我是否需要在兩台服務器上都設置binlog-do-db變量?

沒有。

我是否需要設置復制數據庫變量?

沒有。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM