我安装https://book.tidb.io/session3/chapter5/recover-data-gc.html文档,操作 5.1.4 恢复被更新/删除的数据时遇到问题。
MySQL [test1]> set @@tidb_snapshot=“2020-09-17 16:44:09”;
Query OK, 0 rows affected (0.02 sec)
MySQL [test1]> show tables;
±----------------+
| Tables_in_test1 |
±----------------+
| test1 |
±----------------+
1 row in set (0.00 sec)
MySQL [test1]> create table test1_20200917 like test1;
ERROR 1105 (HY000): can not execute write statement when ‘tidb_snapshot’ is set!
1600338897485_6E1C6BE3-4877-41ee-A1CA-253ACADA49A0|690x235
创建表时报上面错误,请问TiDB读取历史数据时是只读的吗,有什么方法可以将目前的数据切换到历史时间点的数据呢?感谢