How to Report Replication Bugs or Problems
1512
possible from you to be able to track down the bug. Please spend some time and effort in preparing a
good bug report.
If you have a repeatable test case that demonstrates the bug, please enter it into our bugs database
using the instructions given in
Section 1.7, “How to Report Bugs or Problems”
. If you have a “phantom”
problem (one that you cannot duplicate at will), use the following procedure:
1. Verify that no user error is involved. For example, if you update the slave outside of the slave
thread, the data goes out of synchrony, and you can have unique key violations on updates. In
this case, the slave thread stops and waits for you to clean up the tables manually to bring them
into synchrony. This is not a replication problem. It is a problem of outside interference causing
replication to fail.
2. Run the slave with the
--log-slave-updates
[1451]
and
--log-bin
[1467]
options. These
options cause the slave to log the updates that it receives from the master into its own binary logs.
3. Save all evidence before resetting the replication state. If we have no information or only sketchy
information, it becomes difficult or impossible for us to track down the problem. The evidence you
should collect is:
• All binary log files from the master
• All binary log files from the slave
• The output of
SHOW MASTER STATUS
from the master at the time you discovered the problem
• The output of
SHOW SLAVE STATUS
from the slave at the time you discovered the problem
• Error logs from the master and the slave
4. Use
mysqlbinlog
to examine the binary logs. The following should be helpful to find the problem
statement.
log_file
and
log_pos
are the
Master_Log_File
and
Read_Master_Log_Pos
values from
SHOW SLAVE STATUS
.
shell>
mysqlbinlog --start-position=log_pos log_file | head
After you have collected the evidence for the problem, try to isolate it as a separate test case first. Then
enter the problem with as much information as possible into our bugs database using the instructions at
Section 1.7, “How to Report Bugs or Problems”
.
Summary of Contents for 5.0
Page 1: ...MySQL 5 0 Reference Manual ...
Page 18: ...xviii ...
Page 60: ...40 ...
Page 396: ...376 ...
Page 578: ...558 ...
Page 636: ...616 ...
Page 844: ...824 ...
Page 1234: ...1214 ...
Page 1427: ...MySQL Proxy Scripting 1407 ...
Page 1734: ...1714 ...
Page 1752: ...1732 ...
Page 1783: ...Configuring Connector ODBC 1763 ...
Page 1793: ...Connector ODBC Examples 1773 ...
Page 1839: ...Connector Net Installation 1819 2 You must choose the type of installation to perform ...
Page 2850: ...2830 ...
Page 2854: ...2834 ...
Page 2928: ...2908 ...
Page 3000: ...2980 ...
Page 3122: ...3102 ...
Page 3126: ...3106 ...
Page 3174: ...3154 ...
Page 3232: ...3212 ...