89554

89554



The Slave Relay Log

The relay log, like the binary log, consists of a set of numbered files containing events that describe

database changes, and an index file that contains the names of all used relay log files.

The term “relay log file” generally denotes an individual numbered file containing database events. The

term "relay log" collectively denotes the set of numbered relay log files plus the index file.

Relay log files have the same format as binary log files and can be read using

mysąlbinlog (see

Section 4.6.8, “mysąlbinlog — Utility for Processing Binary Log Files").

By default, relay log file names have the form nos t_name-relay-bin. nnnnnn in the data

directory, where host_name is the name of the slave server host and nnnnnn is a seąuence number.

Successive relay log files are created using successive seąuence numbers, beginning with 000001.

The slave uses an index file to track the relay log files currently in use. The default relay log index file

name is host_name-relay-bin. index in the data directory.

The default relay log file and relay log index file names can be overridden with, respectively, the

—relay-log [2007] and --relay-log-index [2008] server options (see Section 16.1.4,

“Replication and Binary Logging Options and Variables").

If a slave uses the default host-based relay log file names, changing a slave's host name after

replication has been set up can cause replication to fail with the errors Failed to open the

relay log and Could not find target log during relay log initialization. This

is a known issue (see Bug #2122). If you anticipate that a slave's host name might change in the

futurę (for example, if networking is set up on the slave such that its host name can be modified using

DHCP), you can avoid this issue entirely by using the —relay-log [2007] and —

relay-logindex

[2008] options to specify relay log file names explicitly when you initially set up the slave. This

will make the names independent of server host name changes.

If you encounter the issue after replication has already begun, one way to work around it is to stop the

slave server, prepend the contents of the old relay log index file to the newone. and then restart the

slave. On a Unix system, this can be done as shown here:

3hell>cat nev_relay_2ogr_name. index »old_relay_log_name. index shell>mv old relay log name.index new relay log name.index



Wyszukiwarka

Podobne podstrony:
An Introduction may include: The main body consists of a number of paragraphs each of whic
skanowanie0039 (9) The planning stage consists of all those decisions taken before the development a
Level 3 Model ExamREADING Description of the Test The test consists of 2 tasks and contains 20 quest
Level 3 Model ExamLISTENING Description of the Test The test consists of four tasks containing 20
vi,1 TO THE STUDENT The fuli series consists of: Test Your Professional English: Test Your Professio
313 (14) A Practical Guide to Feline Dermatology The second phase consists of long-term control of t
Chapter 1Introduction This chapter introduces the reader to the content of the dissertation. It cons
HALDOR TORSOE U 8/20 Latest developments in ammonia production technology The S-50 converter consist
9 Urszula Tyluś the last circle (consisting of the unemployed or part-time workers creating their ow
shoes&pattens0 100 Shoes and Patłens an identical all-over floral pattem. The motif itself, consist
CSG265 254 Complete Spanish Grammar The Short Forms The short forms consist of a single word. The su

więcej podobnych podstron