zoukankan      html  css  js  c++  java
  • 【故障处理】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 statusG;
    *************************** 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;
                 完美解决

     

  • 相关阅读:
    opengl中对glOrtho()函数的理解
    cocos2D-x demo 的源码分析 #define ..##.. 的妙用.
    js练习图片轮播
    js 表单操作form
    JS DOM
    java Map
    html--form表单
    java反射应用
    JDBC的使用-----Statement
    sql 查询语句的练习2
  • 原文地址:https://www.cnblogs.com/wudonghang/p/1ec243685e05294464d9ac6e6d4ac63e.html
Copyright © 2011-2022 走看看