MySQL5.7.34 开启binlog 开启binlog: 直接在mysql配置文件:/etc/my.cnf 下面追加 log-bin=mysql-binserver-id=1binlog_format=row 如下: