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> 

 

相关文章:

  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2021-08-07
  • 2022-01-15
  • 2022-12-23
猜你喜欢
  • 2022-02-10
  • 2021-12-11
  • 2022-12-23
  • 2021-04-13
  • 2021-12-29
相关资源
相似解决方案