89302

89302



Creating a Data Snapshot Using Raw Data Files

If your database is large, copying the raw data files can be morę efficient than using

mysąldumpand

importing the file on each slave. This technique skips the overhead of updating indexes as the INSERT statements are replayed.

Using this method with tables in storage engines with complex caching or logging algorithms requires

extra steps to produce a perfect “point in time” snapshot the initial copy command might leave out

cache information and logging updates, even if you have acquired a global read lock. How the storage

engine responds to this depends on its crash recovery abilities.

This method also does not \*ork reliably if the master and slave have different values for

ft_stopword_file[499], ft_min_word_len[499], or ft_max_word_len[498] and you are

copying tables having full-text indexes.

If you use InnoDBtables, you can use the mysqlbackupcommand from the MySQL Enterprise

Backup component to produce a consistent snapshot. This command records the log name and

offset corresponding to the snapshot to be later used on the slave. MySQL Enterprise Backup is a

commercial product that is included as part of a MySQL Enterprise subscription. See Section 24.2,

“MySQL Enterprise Backup” for detailed information.

Otherwise, use the cold backup technique to obtain a reliable binary snapshot of InnoDBtables: copy

all data files after doing a slow shutdown of the MySQL Sen/er.

To create a raw data snapshot of MylSAMtables, you can use standard copy tools such as cpor

copy, a remote copy tool such as scpor rsync, an archiving tool such as zip or tar, or a file

system snapshot tool such as dump, providing that your MySQL data files exist on a single file system.

If you are replicating only certain databases. copy only those files that relate to those tables. (For

InnoDB, all tables in all databases are stored in the system tablespace files, unless you have the

innodb_f ile_per_table[1754] option enabled.)



Wyszukiwarka

Podobne podstrony:
From the presented data, it can be observed that the celi voltage and efficiency present higher valu
IMG 1321829419404 jpeg SHOOT FOR THE MOON. EVEN IF V0U MISS, YOULL LAWO AmO«6 THE STARS... ...where
IB2 The arms rangę of movement The sensation of resistance can be expressed with the leg
IB4 Even if the body parts are the same, the naturę of the techniques and atmosphere can be changed
coal lease. Also, there is no need to pay royalties if minę gas is vented to the atmosphere to keep
let s cut paper08 Tug-of-War! To parenta Ask if your child wanta to cut the p«Rr out of Ihr book by
Lost Highway 3 170 Studying Confemporary American Film explanations only if a cognitive account is f
as they re published—often even before they re available in print. If your Kindle is in Airplane Mod
as they re published—often even before they re available in print. If your Kindle is in Airplane Mod
73emissions08 If your Volkswagen is a Stałion Wagon, Campmobile or Kombi, łhe engine is also equippe
Lost Highway 3 170 Studying Confemporary American Film explanations only if a cognitive account is f
NetBIOS Name Rcsolution Process If a NetBIOS command is issued, then the procedurę for resolving Net
opis strona Application If everything has gone well untill now.lhe thin wiring can be replaced by l
73emissions05 Engine with fuel injection If your Volkswagen is a VW Type 3, VW Square-back, VW 411 F

więcej podobnych podstron