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的主要内容,如果未能解决你的问题,请参考以下文章
两主机搭建MySQL主从复制后,show slave status显示:Last_IO_Error: error connecting to master ……
mysql报错1872: Slave failed to initialize relay log info structure from the repository
MySQL 5.6主从Slave_IO_Running:Connecting/error connecting to master *- retry
MySQL复制ERROR 1794 (HY000): Slave is not configured or failed to initialize properly.
MySQL复制报错(Slave failed to initialize relay log info structure from the repository)
mysql 主从关系ERROR 1872 (HY000): Slave failed to initialize relay log info structure from the repositor