From 90b11e16bdd587d799757bce21c0425a6131b80d Mon Sep 17 00:00:00 2001 From: lilin90 Date: Mon, 28 May 2018 13:58:43 +0800 Subject: [PATCH 1/2] faq: add ERROR 1148 (42000) Via: https://github.com/pingcap/docs-cn/pull/732 --- FAQ.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/FAQ.md b/FAQ.md index 2219100810d00..7693968089abe 100644 --- a/FAQ.md +++ b/FAQ.md @@ -825,3 +825,9 @@ update mysql.tidb set variable_value='30m' where variable_name='tikv_gc_life_tim #### ERROR 1105 (HY000): other error: unknown error Wire Error(InvalidEnumValue(4004)) This error usually occurs when the version of TiDB does not match with the version of TiKV. To avoid version mismatch, upgrade all components when you upgrade the version. + +#### ERROR 1148 (42000): the used command is not allowed with this TiDB version + +When you execute the `LOAD DATA LOCAL` statement but the MySQL client does not allow executing this statement (the value of the `local_infile` option is 0), this error occurs. + +The solution is to use the `--local-infile=1` option when you start the MySQL client. For example, use command like `mysql --local-infile=1 -u root -h 127.0.0.1 -P 4000`. The default value of `local-infile` is different in different versions of MySQL client, therefore you need to cofigure it in some MySQL clients and do not need to cofigure it in some others. \ No newline at end of file From 14a491eace8855557993e86025df1bf130fd3bd8 Mon Sep 17 00:00:00 2001 From: lilin90 Date: Mon, 28 May 2018 14:27:59 +0800 Subject: [PATCH 2/2] faq: fix a typo --- FAQ.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FAQ.md b/FAQ.md index 7693968089abe..b6442ab5f2f51 100644 --- a/FAQ.md +++ b/FAQ.md @@ -830,4 +830,4 @@ This error usually occurs when the version of TiDB does not match with the versi When you execute the `LOAD DATA LOCAL` statement but the MySQL client does not allow executing this statement (the value of the `local_infile` option is 0), this error occurs. -The solution is to use the `--local-infile=1` option when you start the MySQL client. For example, use command like `mysql --local-infile=1 -u root -h 127.0.0.1 -P 4000`. The default value of `local-infile` is different in different versions of MySQL client, therefore you need to cofigure it in some MySQL clients and do not need to cofigure it in some others. \ No newline at end of file +The solution is to use the `--local-infile=1` option when you start the MySQL client. For example, use command like `mysql --local-infile=1 -u root -h 127.0.0.1 -P 4000`. The default value of `local-infile` is different in different versions of MySQL client, therefore you need to configure it in some MySQL clients and do not need to configure it in some others. \ No newline at end of file