Mysql复制-Slave库设置复制延迟
生活随笔
收集整理的這篇文章主要介紹了
Mysql复制-Slave库设置复制延迟
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
mysql> stop slave;
mysql> change master to master_delay=10;#單位是秒
mysql> start slave;
mysql> show slave status\G
*************************** 1. row ***************************Slave_IO_State: Waiting for master to send event...SQL_Delay: 10SQL_Remaining_Delay: NULLSlave_SQL_Running_State: Slave has read all relay log; waiting for the slave I/O thread to update itMaster_Retry_Count: 86400Master_Bind: Last_IO_Error_Timestamp: Last_SQL_Error_Timestamp: Master_SSL_Crl: Master_SSL_Crlpath: Retrieved_Gtid_Set: Executed_Gtid_Set: Auto_Position: 0
1 row in set (0.00 sec)mysql>
?
轉載于:https://www.cnblogs.com/abclife/p/5691563.html
總結
以上是生活随笔為你收集整理的Mysql复制-Slave库设置复制延迟的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: PyQt4重写事件处理方法
- 下一篇: C#获取ip的示例