【故障处理】mysql出现大量slave bin日志,将磁盘空间占满

master服务器IO线程 NO 
问题描述:造成大量slave bin 日志 大量占用磁盘
排查解决步骤:
1.检查是配置的问题还是mysql数据库本身的故障
2.将master的机器 mysql_slave配置同步为backup机器的mysql_master配置
命令如下
    (1)在backup机器查询backup数据库master的配置  show master status;---【show master status;=mysql-bin.001160  Position=719834926】
    (2)在master机器查询配置信息是否一致 > show slave status\G;
*************************** 1. row ***************************
             Slave_IO_State: 
                Master_Host: 192.168.3.251
                Master_User: jianfei
                Master_Port: 3306
              Connect_Retry: 60
            Master_Log_File: mysql-bin.001159
        Read_Master_Log_Pos: 867363641
             Relay_Log_File: slave-relay-bin.006727
              Relay_Log_Pos: 4
      Relay_Master_Log_File: mysql-bin.001159
           Slave_IO_Running: No
          Slave_SQL_Running: No
            Replicate_Do_DB: 
        Replicate_Ignore_DB: 
         Replicate_Do_Table: 
     Replicate_Ignore_Table: 
    Replicate_Wild_Do_Table: 
Replicate_Wild_Ignore_Table: mysql.%,information_schema.%,test.%
                 Last_Errno: 0
                 Last_Error: 
               Skip_Counter: 1
        Exec_Master_Log_Pos: 1073741772
            Relay_Log_Space: 135085197862
            Until_Condition: None
             Until_Log_File: 
              Until_Log_Pos: 0
         Master_SSL_Allowed: No
         Master_SSL_CA_File: 
         Master_SSL_CA_Path: 
            Master_SSL_Cert: 
          Master_SSL_Cipher: 
             Master_SSL_Key: 
      Seconds_Behind_Master: NULL
 
    注意:这是这次解决的命令
            slave stop;
            change master to master_log_file='mysql-bin.001160',master_log_pos=719834926;
            slave start;
             完美解决

 

转载于:https://www.cnblogs.com/wudonghang/p/1ec243685e05294464d9ac6e6d4ac63e.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值