Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mysqldump-the meaning of the master-data=2 parameter

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Mysqldump-- master-data [= value]

This option writes the location and file name of the binary log to the output. This option requires RELOAD permission and binary logging must be enabled. If the option value is equal to 1, the location and filename are written to the dump output in the form of a CHANGE MASTER statement, if you use the SQL to dump the master server to set up the slave server, starting from the correct location of the master server binary log. If the option value equals 2, the MASTER statement is written as a SQL comment. If value is omitted, this is the default action.

-- master-data=2 comments out the line change log, and = 1 has no comments.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report