MyFlash MySQL闪回工具

安装:mysql

环境要求:git

一、binlog格式必须为row,且binlog_row_image=fullgithub

二、仅支持5.6与5.7sql

三、只能回滚DML(增、删、改)code

4.  下载地址:https://github.com/Meituan-Dianping/MyFlaship

 

安装:flash

 

unzip MyFlash-master.zip

mv MyFlash-master /usr/local/MyFlash/

gcc -w  `pkg-config --cflags --libs glib-2.0` source/binlogParseGlib.c  -o binary/flashback

 

闪回:it

 

update,情景描述,程序1误将xtr库下面的t2表 12,11 更改后0了,这是一个错误的操做;然后面的程序2将1三、14更改0了,这是一个正确的操做,须要闪回程序1的误操做。ast

模似上述场景:gcc

原表:

 

mysql> select * from xtr.t2;

+------+

| id  |

+------+

|  12 |

|  11 |

|  4  |

|  3  |

|  13 |

|  14 |

+------+
6 rows in set (0.00 sec)

 

update操做:

相关文章
相关标签/搜索