## 5.7 从库多线程MTS 基本要求: 5.7以上的版本(忘记小版本) 必须开启GTID binlog必须是row模式 gtid_mode=ON enforce_gtid_consistency=ON log_slave_updates=ON slave-parallel-type=LOGICAL_CLOCK slave-parallel-workers=16 master_info_repository=TABLE relay_log_info_repository=TABLE relay_log_recovery=ON 5.7 : slave-parallel-type=LOGICAL_CLOCK slave-parallel-workers=8 cpu核心数作为标准 CHANGE MASTER TO MASTER_HOST='10.0.0.128', MASTER_USER='repl', MASTER_PASSWORD='123', MASTER_PORT=3307, MASTER_AUTO_POSITION=1; start slave;