mysql5.7 主从配置docker配置文件

weixin_15135634 39 0 RAR 2020-05-31 12:05:05

该配置文件可以直接放置到目录下,使用docker-composeup-d启动使用。 其中server_id=XX不能重复 在master中执行: grantreplicationslave,replicationclienton*.*to'user1'@'%'identifiedby'1'; flushprivileges; showmasterstatus; 记录file和pos,用在slave中的master_log_file和master_log_pos中。 在slave中执行: changemastertomaster_hos

用户评论
请输入评论内容
评分:
暂无评论