1Z0-888 · Question #80
You need to dump the data from the master server and import it into a new slave server. Which mysqldump option can be used when dumping data from the master server in order to include the master…
The correct answer is D. master-data. --master-data is the correct mysqldump option because it automatically appends a CHANGE MASTER TO statement to the dump file, recording the master's current binary log filename and position. This is exactly what a new slave needs to know where to begin replicating - without it…
Question
Options
- Ainclude-log-file
- Bmaster-binlog
- Cinclude-master-info
- Dmaster-data
How the community answered
(36 responses)- A3% (1)
- B3% (1)
- C6% (2)
- D89% (32)
Explanation
--master-data is the correct mysqldump option because it automatically appends a CHANGE MASTER TO statement to the dump file, recording the master's current binary log filename and position. This is exactly what a new slave needs to know where to begin replicating - without it, you'd have to manually determine the log position. Options A (include-log-file), B (master-binlog), and C (include-master-info) are fabricated names that do not exist in mysqldump's actual option set; they are plausible-sounding distractors designed to test whether you know the real flag.
Memory tip: Think of it as "dump the master's data about its log position" - the word data in --master-data refers to the metadata about the master (log file + position), not the table data itself.
Topics
Community Discussion
No community discussion yet for this question.