Import csv data from localhost emacs SQLi error MySQL
It seems variable  "local_infile" is turned off before loading and if you specify "--local-infile" turns on this variable. 

You can use following steps to load file  


  login mysql using mysql -uroot -p
  set global local_infile to value 1
  Then try load data local infile  


Hope it helps