Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysqldump 시 replication 정보 추가 #7

Open
ibin79 opened this issue Apr 6, 2018 · 0 comments
Open

mysqldump 시 replication 정보 추가 #7

ibin79 opened this issue Apr 6, 2018 · 0 comments

Comments

@ibin79
Copy link
Collaborator

ibin79 commented Apr 6, 2018

mariadb replication 상태에서 master 백업시, slave 에서 복원을 위한 replication 정보 추가

--single-transaction 설정은 이미 포함되어 있음

--master-data=2

백업된 sql 상단에 추가되는 내용

--
-- Position to start replication or point-in-time recovery from
--

-- CHANGE MASTER TO MASTER_LOG_FILE='mysql-bin.000113', MASTER_LOG_POS=72282874;

--
-- GTID to start replication from
--

-- SET GLOBAL gtid_slave_pos='0-1-193208812';

ex) --single-transaction --master-data=2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant