GTID Replication (Skip Transaction using empty transaction)
GTID Replication (Skip Transaction using empty transaction)
To skip SQL thread's error in GTID replication setup, Insert empty transaction.
PROBLEM :
*************************** 1.
Slave_IO_State: Waiting for master to send event
Master_Host: xxxxx
Master_User: rep_user
Master_Port: 3306
Connect_Retry: 60
Master_Log_File:
Read_Master_Log_Pos: 4508785
Relay_Log_File:
Relay_Log_Pos: 2146333
Relay_Master_Log_File:
Slave_IO_Running: Yes
Slave_SQL_Running: No
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: Error 'Table 'mysql
Skip_Counter: 0
Exec_Master_Log_Pos: 3010072
Relay_Log_Space: 4510135
Until_Condition: None
Until_Log_File:
Until_Log_Pos: 0
Master_SSL_Allowed: Yes
Master_SSL_CA_File: /mysql/
Master_SSL_CA_Path:
Master_SSL_Cert: /mysql/
Master_SSL_Cipher:
Master_SSL_Key: /mysql/
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 'mysql
Replicate_Ignore_Server_Ids:
Master_Server_Id: 562
Master_UUID: 11387751-34f3-11e4-a177-005056881ef0
Master_Info_File: mysql
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: 190509 06:33:35
Master_SSL_Crl:
Master_SSL_Crlpath:
Retrieved_Gtid_Set: 11387751-34f3-11e4-a177-005056881ef0:1244-88891
Executed_Gtid_Set: 11387751-34f3-11e4-a177-005056881ef0:1233-86906,
cdad9e89-e19f-11e3-821e-f01fafd8ff5a:1-335866966
Auto_Position: 0
1 row in set (0.00
SOLUTION:
------------------------------------------------------------------------------------------------------STOP SLAVE;
SET GTID_NEXT="11387751-34f3-11e4-a177-005056881ef0:86907";
BEGIN; COMMIT;
SET GTID_NEXT="AUTOMATIC";
START SLAVE;
------------------------------------------------------------------------------------------------------
Photo by Jordan Donaldson | @jordi.d on Unsplash
Comments
Post a Comment