码迷,mamicode.com
首页 > 其他好文 > 详细

mydqldump

时间:2016-01-29 15:52:48      阅读:143      评论:0      收藏:0      [点我收藏+]

标签:

mydqldump

  One way to create a snapshot of the data in an existing master database is to use the mysqldump tool to create a dump of all the databases you want to replicate. Once the data dump has been completed, you then import this data into the slave before starting the replication process.

  The example shown here dumps all databases to a file named dbdump.db, and includes the --master-data option which automatically appends the CHANGE MASTER TO statement required on the slave to start the replication process:

  技术分享

  

mydqldump

标签:

原文地址:http://www.cnblogs.com/tekkaman/p/5168856.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!