错误信息
ERROR 1148: The used command is not allowed with this MySQL version
my.cnf 中的 [client] , [mysqld] 中增加 loose-local-infile=1
重启 MySQL 后查看该值
SHOW VARIABLES LIKE 'local_infile';
SET GLOBAL local_infile = true;
命令中增加 --local-infile 参数
mysql -u myuser -p --local-infile