说明:该配置文件可以直接放置到目录下,使用docker-compose up -d启动使用。
其中server_id=XX不能重复
在master中执行:
grant replication slave,replication client on *.* to 'user1''%' identified by '1';
flush privileges;
show master status;
记录file和pos,用在slave中的master_log_file和master_log <u012329294> 上传 | 大小:2kb