服务器:centos7
mysql:5.6
1、修改master上的mysql的配置文件my.cnf
[mysqld] #### master # mysql主从备份 start # 启动二进制日志 log-bin=mysql-bin # 服务器唯一ID master server-id=150 # 二进制日志自动删除的天数 expire_logs_days=5 # mysql主从备份 end
原文:https://www.cnblogs.com/xxoome/p/9850451.html