【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 连接即可

posted @ 2018-09-21 09:40  Flint99  阅读(1263)  评论(0编辑  收藏  举报