Chinaunix首页 | 论坛 | 博客
  • 博客访问: 225008
  • 博文数量: 22
  • 博客积分: 1676
  • 博客等级: 上尉
  • 技术积分: 420
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-31 10:48
文章分类

全部博文(22)

文章存档

2011年(8)

2010年(1)

2009年(1)

2008年(12)

我的朋友

分类: Mysql/postgreSQL

2009-06-08 19:48:04

Syndrome:
mysql > show slave status\G
*************************** 1. row ***************************
             Slave_IO_State: Waiting for master to send event
                Master_Host: x.x.x.x
                Master_User: x
                Master_Port: 3306
              Connect_Retry: 60
            Master_Log_File: mysql-bin.000244
        Read_Master_Log_Pos: 27646713
             Relay_Log_File: mysqld-relay-bin.000089
              Relay_Log_Pos: 17263579
      Relay_Master_Log_File: mysql-bin.000242
           Slave_IO_Running: Yes
          Slave_SQL_Running: No
            Replicate_Do_DB:
        Replicate_Ignore_DB: xxxx
         Replicate_Do_Table:
     Replicate_Ignore_Table:
    Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
                 Last_Errno: 0
                 Last_Error: xxxxxxx
               Skip_Counter: 0
        Exec_Master_Log_Pos: 17263442
            Relay_Log_Space: 92789222
            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: 99460
1 row in set (0.00 sec)
Solution
On the slave server, run
mysql -uroot -p
mysql > stop slave;
mysql > SET GLOBAL SQL_SLAVE_SKIP_COUNTER = N
mysql > start slave;
mysql > show slave status\G
*************************** 1. row ***************************
             Slave_IO_State: Waiting for master to send event
                Master_Host: x.x.x.x
                Master_User: x
                Master_Port: 3306
              Connect_Retry: 60
            Master_Log_File: mysql-bin.000244
        Read_Master_Log_Pos: 27646713
             Relay_Log_File: mysqld-relay-bin.000089
              Relay_Log_Pos: 17263579
      Relay_Master_Log_File: mysql-bin.000242
           Slave_IO_Running: Yes
          Slave_SQL_Running: Yes
            Replicate_Do_DB:
        Replicate_Ignore_DB: xxxx
         Replicate_Do_Table:
     Replicate_Ignore_Table:
    Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
                 Last_Errno: 0
                 Last_Error:
               Skip_Counter: 0
        Exec_Master_Log_Pos: 17263442
            Relay_Log_Space: 92789222
            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: 99460
1 row in set (0.00 sec)
everything is back to normal.
阅读(935) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~