I have a script that is trying to load some data into MySQL with LOAD DATA INFILE. For some reason, it works if the file is in the /tmp directory,
LOAD DATA INFILE
/tmp
mysqlimport --local
OR
LOAD DATA LOCAL INFILE... should fix the issue.