Pausing Replication on the Slave-opracowanie

Nasza ocena:

3
Wyświetleń: 392
Komentarze: 0
Notatek.pl

Pobierz ten dokument za darmo

Podgląd dokumentu
Pausing Replication on the Slave-opracowanie - strona 1

Fragment notatki:

Pausing Replication on the Slave
You can stop and start the replication of statements on the slave using the STOP SLAVE and START
SLAVE statements.
To stop processing of the binary log from the master, use STOP SLAVE:
mysql STOP SLAVE;
When replication is stopped, the slave I/O thread stops reading events from the master binary log and
writing them to the relay log, and the SQL thread stops reading events from the relay log and executing
them. You can pause the I/O or SQL thread individually by specifying the thread type:
mysql STOP SLAVE IO_THREAD;
mysql STOP SLAVE SQL_THREAD;
To start execution again, use the START SLAVE statement:
mysql START SLAVE;
To start a particular thread, specify the thread type:
mysql START SLAVE IO_THREAD;
mysql START SLAVE SQL_THREAD;
For a slave that performs updates only by processing events from the master, stopping only the SQL
thread can be useful if you want to perform a backup or other task. The I/O thread will continue to read
events from the master but they are not executed. This makes it easier for the slave to catch up when
you restart the SQL thread.
... zobacz całą notatkę



Komentarze użytkowników (0)

Zaloguj się, aby dodać komentarz