查看 binlog 是否开启show variables like '%log_bin%'开启 binlog[mysqld]log-bin=mysql-bin(随意写)主从同步binlog_fo...