Skip to content

Commit 2d19699

Browse files
authored
add connection string for plan replayer (#16870) (#16901)
1 parent ee95c52 commit 2d19699

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

sql-plan-replayer.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,10 @@ mysql> show stats_meta;
196196

197197
After the scene is loaded and restored, you can diagnose and improve the execution plan for the cluster.
198198

199+
> **Note:**
200+
>
201+
> If you use the `mysql` command-line client and encounter `ERROR 2068 (HY000): LOAD DATA LOCAL INFILE file request rejected due to restrictions on access.`, you can add `--local-infile=true` in the connection string.
202+
199203
## Use `PLAN REPLAYER CAPTURE` to capture target plans
200204

201205
When you locate the execution plan of TiDB in some scenarios, the target SQL statement and the target execution plan might only appear occasionally in the query, so you cannot directly capture the statement and the plan using `PLAN REPLAYER`. In such cases, you can use `PLAN REPLAYER CAPTURE` to help you capture the optimizer information of the target SQL statement and the target plan.

tidb-cloud/tidb-cloud-import-local-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ CREATE TABLE `import_test` (
9898
LOAD DATA LOCAL INFILE 'load.txt' INTO TABLE import_test FIELDS TERMINATED BY ',' (name, address);
9999
```
100100

101-
If you use `mysql` and encounter `ERROR 2068 (HY000): LOAD DATA LOCAL INFILE file request rejected due to restrictions on access.`, you can add `--local-infile=true` in the connection string.
101+
If you use the `mysql` command-line client and encounter `ERROR 2068 (HY000): LOAD DATA LOCAL INFILE file request rejected due to restrictions on access.`, you can add `--local-infile=true` in the connection string.
102102

103103
### Why can't I query a column with a reserved keyword after importing data into TiDB Cloud?
104104

0 commit comments

Comments
 (0)