日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > 数据库 >内容正文

数据库

MySQL --log-slave-updates

發布時間:2025/3/14 数据库 44 豆豆
生活随笔 收集整理的這篇文章主要介紹了 MySQL --log-slave-updates 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

官方說明:
--log-slave-updates
Command-Line Format--log-slave-updates
Option-File Formatlog-slave-updates
System Variable Namelog_slave_updates
Variable ScopeGlobal
Dynamic VariableNo
?Permitted Values
Typeboolean
DefaultFALSE
Normally, a slave does not log to its own binary log any updates that are received from a master server. This option tells the slave to log the updates performed by its SQL thread to its own binary log. For this option to have any effect, the slave must also be started with the?--log-bin?option to enable binary logging.?--log-slave-updates?is used when you want to chain replication servers. For example, you might want to set up replication servers using this arrangement: A -> B -> C Here,?A?serves as the master for the slave?B, and?B?serves as the master for the slave?C. For this to work,?B?must be both a master?and?a slave. You must start both?A?and?B?with?--log-bin?to enable binary logging, and?B?with the?--log-slave-updates?option so that updates received from?A?are logged by?B?to its binary log.

這個參數用來配置從服務器上的更新似乎否寫二進制日志,默認是不打開的。但是,如果這個從服務器也要作為其他服務器的主服務器,搭建一個鏈式的復制,那么就需要打開這個選項,這樣它的從服務器將獲得該從庫的二進制日志以進行同步操作。
這個啟動參數需要和--logs-bin參數一起使用。如果只打開log-slave-updates而關閉--logs-bin,在數據庫啟動時會報錯。

轉載于:https://www.cnblogs.com/zhaoshuangshuang/p/3363733.html

總結

以上是生活随笔為你收集整理的MySQL --log-slave-updates的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。