Skip to content

Commit

Permalink
online unsafe recovery: fix wrong table name in INFORMATION_SCHEMA.TA…
Browse files Browse the repository at this point in the history
…BLES (pingcap#12891)
  • Loading branch information
Oreoxmt authored Feb 1, 2023
1 parent 708a42f commit b123cb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions online-unsafe-recovery.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,10 +145,10 @@ PD 下发恢复计划后,会等待 TiKV 上报执行的结果。如上述输
}
```

得到受影响的 table id 后,可以使用 `INFORMATION_SCHEMA` 来查看受影响的表名。
得到受影响的 table id 后,可以使用 `INFORMATION_SCHEMA.TABLES` 来查看受影响的表名。

```sql
SELECT TABLE_SCHEMA, TABLE_NAME, TIDB_TABLE_ID FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_ID IN (64, 27);
SELECT TABLE_SCHEMA, TABLE_NAME, TIDB_TABLE_ID FROM INFORMATION_SCHEMA.TABLES WHERE TIDB_TABLE_ID IN (64, 27);
```

> **注意:**
Expand Down

0 comments on commit b123cb2

Please sign in to comment.