使用语句mysql> load data local infile '/home/hadoop/tmpdata/employees.tsv' into table employees fields terminated by '\t' lines terminated by '\n';
ERROR 1148 (42000): The used command is not allowed with this MySQL version
解决办法1:在/etc/mysql/mycnf 中,添加一句local-infile=1,重启mysql服务 sudo restart mysql
解决办法2:退出,重新进入 mysql --local-infile=1 -u username -p