MEMORY Tables and Replication-opracowanie

Nasza ocena:

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

Pobierz ten dokument za darmo

Podgląd dokumentu
MEMORY Tables and Replication-opracowanie - strona 1

Fragment notatki:

MEMORY Tables and Replication
A server's MEMORY tables become empty when it is shut down and restarted. If the server is a
replication master, its slaves are not aware that these tables have become empty, so you see out-ofdate
content if you select data from the tables on the slaves. To synchronize master and slave MEMORY
tables, when a MEMORY table is used on a master for the first time since it was started, a DELETE
statement is written to the master's binary log, to empty the table on the slaves also. The slave still
has outdated data in the table during the interval between the master's restart and its first use of the
table. To avoid this interval when a direct query to the slave could return stale data, use the --initfile
[438] option to populate the MEMORY table on the master at startup.
... zobacz całą notatkę



Komentarze użytkowników (0)

Zaloguj się, aby dodać komentarz