细节
-
错误
-
状态: Done">完成
-
高
-
解决方法: 固定
-
没有一个
-
没有一个
描述
**在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
-
-
- 插入db.tiny_url
- 集
- @1=88801080 /* INT meta=0 nullable=0 is_null=0 */
- @2='http://15449413.blog.hexun.com/62026240_d.html' /* VARSTRING(400) meta=400 nullable=0 is_n
妳= 0 * / - @3='——' /* VARSTRING(18) meta=18 nullable=0 is_null=0 */
- @4=0 /* LONGINT meta=0 nullable=0 is_null=0 */
- @5='00:00:27' /* TIME meta=0 nullable=0 is_null=0 */
- INSERT INTO db.__tmp_tiny_url
- 集
- @1=88801080 /* INT meta=0 nullable=0 is_null=0 */
- @2='http://15449413.blog.hexun.com/62026240_d.html' /* VARSTRING(400) meta=400 nullable=0 is_n
妳= 0 * / - @3='——' /* VARSTRING(18) meta=18 nullable=0 is_null=0 */
- @4=0 /* LONGINT meta=0 nullable=0 is_null=0 */
- @5='00:00:27' /* TIME meta=0 nullable=0 is_null=0 */
-
- 在29516
#120216 0:00:27服务器id 152233306 end_log_pos 29543 Xid = 38657832443
提交/!/; - 在29543
__tmp_tiny_url只在主服务器上创建,但触发写入binlog,因此在从服务器上发生错误。
