Mysql Slave 卡住了,因为 sql 和 io 显示 yes

标签 mysql

帮我解决以下关于奴隶的问题..

mysql> show slave status\G
*************************** 1. row ***************************
               Slave_IO_State: Waiting for master to send event
                  Master_Host: isp-db-mysql-1.be.infra
                  Master_User: slave
                  Master_Port: 3306
                Connect_Retry: 60
              Master_Log_File: isp-db-mysql-1.052619
          Read_Master_Log_Pos: 3138691
               Relay_Log_File: isp-db-mysql-1-relay-bin.000002
                Relay_Log_Pos: 32861
        Relay_Master_Log_File: isp-db-mysql-1.052556
             Slave_IO_Running: Yes
            Slave_SQL_Running: Yes
              Replicate_Do_DB:
          Replicate_Ignore_DB:
           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: 8109731
              Relay_Log_Space: 6642282995
              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: 1111111
Master_SSL_Verify_Server_Cert: No
                Last_IO_Errno: 0
                Last_IO_Error:
               Last_SQL_Errno: 0
               Last_SQL_Error:
1 row in set (0.01 sec)

中继日志位置没有移动,这使得从属设备滞后,如上所示。

我试图拉取二进制日志,但出现此错误

@mysqlbinlog未知变量'default-character-set=utf8'

在my.cnf中binlog模式是混合的

我尝试停止从站,启动从站.. 没有任何效果..

需要快速帮助,这是产品上的问题:-(

将 master 更改为已更改的日志,pos 是唯一的解决办法吗?

最佳答案

检查mysql日志。应该有一个错误。任何错误都会停止复制。

您可以通过告诉复制忽略错误来快速解决此问题,但这可能会导致复制不一致!查看此帖子:http://www.howtoforge.com/how-to-skip-certain-errors-in-mysql-replication

关于Mysql Slave 卡住了,因为 sql 和 io 显示 yes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19975408/

相关文章:

mysql - #1413 创建触发器时 mysql 出错

PHP:mysqli_query 不起作用

java - 将Mysql的数据类型导入到Java程序中

php - 从哪里获取具有 sql_exec 的 MySql UDF?

mysql - 在MySQL中将行限制为列的总和等于某个值

php - 使用设置查询 MySQL - Kohana 3.0

MySQL 请求连接表 : keep secondary table separate

php - Mysql 语句以特定顺序从数据库中提取信息并包含子集

mysql - 无法创建表 `sakila` .`address` "Foreign key constraint is incorrectly formed"

php - 与 from 有问题