1、配置my.ini文件
#指定log-bin文件名
log-bin=my-bin
server-id=1
#这种方式会记录Insert
binlog_format=mixed
2、客户端查看是否开启
show variables like '%log_bin%';
3、客户端查看当前记录的binlog日志
show master status;
4、查看指定的binlog日志文件内容
show binlog events in 'my-bin.000005'