tidb闪回查询问题

【 TiDB 使用环境`】测试环境
【 TiDB 版本】 V5.4
【遇到的问题】
一张表的数据由于更新错误,我们想用闪回查询把历史某个时间点的数据查出来然后先恢复到一张临时表中,结果报错,详细如下:

insert into tbtmp
select * from table1 as of timestamp ‘2022-05-27 14:00:00’

结果报错:
Error Code:8153 can not set different time in the as of

跪求解决方案

使用dumpling --snapshot导出,然后再导入到其他的库,或者切换表名导入到本库,详见文档
https://docs.pingcap.com/zh/tidb/stable/dumpling-overview#使用-dumpling-导出数据

dumpling --snapshot “2022-05-27 14:00:00”

https://mp.weixin.qq.com/s/VMwy69KiZFKx4SV0M-LsBw TiDB的时光机-闪回技术

2 个赞

太强了

好,非常感谢

:+1:

此话题已在最后回复的 1 分钟后被自动关闭。不再允许新回复。