码迷,mamicode.com
首页 > 数据库 > 详细

mysql slave to master

时间:2016-03-08 19:32:37      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:

1,

在maste A上面创建专门用于备份的用户B
show master status
get log_file and log_pos

2,
CHANGE MASTER TO
MASTER_HOST=‘192.***.***.***‘,
MASTER_USER=‘repl_user‘,
MASTER_PASSWORD=‘hj3****‘,
MASTER_LOG_FILE=‘mysql-bin.000004‘,
MASTER_LOG_POS=7145;

mysql slave to master

标签:

原文地址:http://www.cnblogs.com/eiguleo/p/5255170.html

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