开启日志
my.conf
server-id=1 binlog_format = row log_bin = mysql_bin
查看是否开启
show variables like 'log_bin'; // on