一、安装 mysql版本5.6及以上 二、master配置
修改my.ini文件[mysqld]log-bin=mysql-binserver-id=1 三、创建Master账号
CREATE USER 'slave'@'%' IDENTIFIED BY 'slave'; GRANT REPLICATION
SLAVE ON .
binlog_gtid_simple_recovery 是什么 官方解释This variable controls how
binary log files are iterated during the search for GTIDs when
MySQL starts or restarts.