以下环境在mysql 5.7上完成. set mysql_home=mysql安装路径 set path=%mysql_home%\bin;%path% 首先要准备mysql的启动,可参考:http://silentwu.iteye.com/blog/2308722 由于需要使用OGG解析日志,所以需要在my.ini/my.cnf中设置如下参数 log-bin=u:/soft/mysql/5.7/mysql-5.7.19-winx64/logs/log-bin binlog-ignore-db=…