上传项目图片:“Percona Toolkit”雷竞技下载官网
  1. 雷竞技下载官网Percona工具包
  2. pt - 297

“pt-online-schema-change”可能会破坏复制。

    XML 可打印的

细节

    描述

      **在Launchpad报告顾镭最后更新2012-03-19 16:57:32

      pt-online-schema-change h = 127.0.0.1, P = 3306 t = db。Tiny_url——alter“drop key url”,“add key url(url(80))”——睡眠0.1

      Percona Server with XtraDB (GPL),雷竞技下载官网 Release 12.6, Revision 200

      奴隶:

      显示奴隶状态\G

      Master_Host: 192.168.1.1
      Master_User: repuser
      Master_Port: 3306
      Connect_Retry: 60
      Master_Log_File: crtalk1-bin.009260
      Read_Master_Log_Pos: 125939386
      Relay_Log_File: tw_usr-relay-bin.029288
      Relay_Log_Pos: 122264451
      Relay_Master_Log_File: crtalk1-bin.009260
      Slave_IO_Running:是的
      Slave_SQL_Running:不
      Replicate_Do_DB:
      Replicate_Ignore_DB:
      Replicate_Do_Table:
      Replicate_Ignore_Table:
      Replicate_Wild_Do_Table:
      Replicate_Wild_Ignore_Table:
      Last_Errno: 1146
      Last_Error:错误'Table 'db。__tmp_tiny_url在打开表时“不存在”
      Skip_Counter: 0
      Exec_Master_Log_Pos: 122264304
      Relay_Log_Space: 125939734
      Until_Condition:没有
      Until_Log_File:
      Until_Log_Pos: 0
      Master_SSL_Allowed:不
      Master_SSL_CA_File:
      Master_SSL_CA_Path:
      Master_SSL_Cert:
      Master_SSL_Cipher:
      Master_SSL_Key:
      Seconds_Behind_Master:零
      Master_SSL_Verify_Server_Cert:不
      Last_IO_Errno: 0
      Last_IO_Error:
      Last_SQL_Errno: 1146
      Last_SQL_Error:错误'Table 'db。__tmp_tiny_url在打开表时“不存在”

      主机上的Binlog:
      mysqlbinlog -v -v——base64-output=DECODE-ROWS crtalk1-bin。009261 | grep - b1 1 -A 10 __tmp|more
      #120216 0:00:27服务器id 152233306 end_log_pos 29260 Table_map: ' db '。攻读硕士学位“tiny_url”
      请拨278651
      服务器id 152233306 end_log_pos 29324 Table_map: ' db ' . ' __tmp_tiny_url .
      “映射到278645号
      #120216 0:00:27 server id 152233306 end_log_pos 29420 Write_rows:表id 278651
      #120216 0:00:27服务器id 152233306 end_log_pos 29516 Write_rows:表id 278645 flags: S
      TMT_END_F

          1. 插入db.tiny_url
          2. @1=88801080 /* INT meta=0 nullable=0 is_null=0 */
          3. @2='http://15449413.blog.hexun.com/62026240_d.html' /* VARSTRING(400) meta=400 nullable=0 is_n
            妳= 0 * /
          4. @3='——' /* VARSTRING(18) meta=18 nullable=0 is_null=0 */
          5. @4=0 /* LONGINT meta=0 nullable=0 is_null=0 */
          6. @5='00:00:27' /* TIME meta=0 nullable=0 is_null=0 */
          7. INSERT INTO db.__tmp_tiny_url
          8. @1=88801080 /* INT meta=0 nullable=0 is_null=0 */
          9. @2='http://15449413.blog.hexun.com/62026240_d.html' /* VARSTRING(400) meta=400 nullable=0 is_n
            妳= 0 * /
          10. @3='——' /* VARSTRING(18) meta=18 nullable=0 is_null=0 */
          11. @4=0 /* LONGINT meta=0 nullable=0 is_null=0 */
          12. @5='00:00:27' /* TIME meta=0 nullable=0 is_null=0 */
      1. 在29516
        #120216 0:00:27服务器id 152233306 end_log_pos 29543 Xid = 38657832443
        提交//;
      2. 在29543

      __tmp_tiny_url只在主服务器上创建,但触发写入binlog,因此在从服务器上发生错误。

      附件

        活动

            未赋值的未赋值的
            lpjirasynclpjirasync(不活跃)
            投票:
            0 为这个问题投票
            观察人士:
            2 开始关注这个问题

            日期

              创建:
              更新:
              解决:

              时间跟踪

                估计:
                原始估计-未指定
                未指定
                剩余:
                剩余估计-未指定
                未指定
                记录:
                时间:1天
                1 d

                聪明的清单