Skip to content

Commit

Permalink
faq: add ERROR 1148 (42000) (#480)
Browse files Browse the repository at this point in the history
* faq: add ERROR 1148 (42000)

Via: pingcap/docs-cn#732

* faq: fix a typo
  • Loading branch information
lilin90 authored and CaitinChen committed Jun 12, 2018
1 parent 622b38f commit f9ed1a5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 configure it in some MySQL clients and do not need to configure it in some others.

0 comments on commit f9ed1a5

Please sign in to comment.