mysql slave to master
Posted Cluster Note
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql slave to master相关的知识,希望对你有一定的参考价值。
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的主要内容,如果未能解决你的问题,请参考以下文章