0

I've been reading about MySQL replication and all the resources I've looked at say that a data import (be it a mysqldump, or a raw data dump import) is needed before replication can start. I'm trying to understand why is that. Would it be possible to start replication from a master, where binary logs were saved from the beginning, by telling the slave to replicate from log position 1 (not sure if it's supposed to be 1 or 0 also).

Thanks in advance

asked Aug 12, 2019 at 13:40
3
  • However, after time, the bulk of the binlogs will make that approach impractical. Commented Aug 12, 2019 at 16:27
  • Can you elaborate? Impractical why? Commented Aug 13, 2019 at 6:07
  • What is the total space taken by the binlogs now? Now much space after collecting them for another year? Commented Aug 13, 2019 at 14:33

1 Answer 1

0

If the binary logs contain absolutely everything that created that master (including grants, create database, create table, INSERTs, UPDATEs, and DELETEs), then yes it is possible.

The log position you need is not 0 or 1. It is 4 (See my post Question on having a MySQL 5.1 replicate from a MySQL 5.6 DB)

answered Aug 12, 2019 at 13:47
1
  • 0 and 4 seem to be interchangeable for a starting position. I have used both; I never tried "1". Commented Aug 12, 2019 at 16:27

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.