1在mysql中创建一张表
create table test(id int);
select * from test;
插入了两条数据1,2
mysqlbinlog --no-defaults mysql-bin.000003 > /root/1.txt
cat /root/1.txt
从11952开始,做了对1,2两条数据的插入,现在我们恢复回去
mysqlbinlog --no-defaults mysql-bin.000003 --stop-pos=11952 | mysql -uaccount -ppassword
可以看见,回滚到没有插入的时候