- 论坛徽章:
- 0
|
mysql主库使用5.5版本,从库使用5.6版本,从库配置如下:
relay-log=/data/log/relay-bin
replicate_do_db = xxx
理论上只同步xxx数据库,但现从库产生1146错误:
mysql> show slave status\G;
*************************** 1. row ***************************
Slave_IO_State: Waiting for master to send event
Master_Host: 10.0.0.1
Master_User: replicate
Master_Port: 3306
Connect_Retry: 60
Master_Log_File: mysql-bin.000396
Read_Master_Log_Pos: 56617619
Relay_Log_File: relay-bin.000004
Relay_Log_Pos: 434081025
Relay_Master_Log_File: mysql-bin.000392
Slave_IO_Running: Yes
Slave_SQL_Running: No
Replicate_Do_DB: xxx
Replicate_Ignore_DB:
Replicate_Do_Table:
Replicate_Ignore_Table:
Replicate_Wild_Do_Table:
Replicate_Wild_Ignore_Table:
Last_Errno: 1146
Last_Error: Error 'Table 'bbb.tb_operlist' doesn't exist' on query. Default database: 'xxx'. Query: 'insert into bbb.tb_operlist(lydh,bwldh,oper,CreateTime,result) values('644678045','701055607669','tuijianbiao',now(),'换货')'
Skip_Counter: 0
Exec_Master_Log_Pos: 434080866
Relay_Log_Space: 4351596338
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
Master_SSL_Verify_Server_Cert: No
Last_IO_Errno: 0
Last_IO_Error:
Last_SQL_Errno: 1146
Last_SQL_Error: Error 'Table 'bbb.tb_operlist' doesn't exist' on query. Default database: 'xxx'. Query: 'insert into bbb.tb_operlist(lydh,bwldh,oper,CreateTime,result) values('644678045','701055607669','tuijianbiao',now(),'换货')'
Replicate_Ignore_Server_Ids:
Master_Server_Id: 1
Master_UUID:
Master_Info_File: /data/mysql/master.info
SQL_Delay: 0
SQL_Remaining_Delay: NULL
Slave_SQL_Running_State:
Master_Retry_Count: 86400
Master_Bind:
Last_IO_Error_Timestamp:
Last_SQL_Error_Timestamp: 130901 22:42:57
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set:
Executed_Gtid_Set:
Auto_Position: 0
怎么会执行bbb这个库的插入语句呢,应该在读取binlog时不会将这部分日志读取才对啊,请哪个大大解答下??
|
|