【mysql】 load local data infield 报错 ERROR 1148 (42000): The used command is not allowed with this MySQL version

mysql> load data local infile '/Users/flint/learn/mysql/pet' into table bx_pet;

 执行报错

ERROR 1148 (42000): The used command is not allowed with this MySQL version

 解决办法:

在连接数据库的时候使用

mysql --local-infile -uroot -p 连接即可