当前位置:Gxlcms > 数据库问题 > mysql slave to master

mysql slave to master

时间:2021-07-01 10:21:17 帮助过:55人阅读

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

标签:

人气教程排行