码迷,mamicode.com
首页 > 数据库 > 详细

Mysql复制-Slave库设置复制延迟

时间:2016-07-21 14:59:56      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:

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: 10
          SQL_Remaining_Delay: NULL
      Slave_SQL_Running_State: Slave has read all relay log; waiting for the slave I/O thread to update it
           Master_Retry_Count: 86400
                  Master_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> 

 

Mysql复制-Slave库设置复制延迟

标签:

原文地址:http://www.cnblogs.com/abclife/p/5691563.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!