1.修改mysql的my.cnf文件,增加以下内容 log-bin=mysql-bin binlog-format=ROW 3.查看bin_log是否成功开启: show variables like \'log_bin\'; 相关文章: