--Mac encounter problems using mysqlimport appear under MySQL8 The used command is not allowed with this MySQL version

Happening

Use mysqlimport command to import the file into the mysql csv, given as follows:

zhangxiaofans-MacBook-Pro:aws-money-result joe$ mysqlimport --ignore-lines=1 --fields-terminated-by=,  --user=root --password=12345678   -h 127.0.0.1 -P 3306  --local billing   billing.csv
mysqlimport: [Warning] Using a password on the command line interface can be insecure.
mysqlimport: Error: 1148, The used command is not allowed with this MySQL version, when using table: billing

mysql version of View

mysql -u root -h 127.0.0.1 -P 3306 -p
mysql> select version();
+-----------+
| version() |
+-----------+
| 8.0.13    |
+-----------+

the reason

If LOAD DATA LOCALis disabled, either in the server or the client, a client that attempts to issue such a statement receives the fol-lowing error message:

ERROR 1148: The used command is not allowed with this MySQL version
can be seen, for security reasons, the default is not allowed by the client host load data from remote or mysqlimport command to import data

View lo

Guess you like

Origin blog.csdn.net/q383965374/article/details/102950906