same problem. it was a resolution problem.
shell exec from php:
'mysql --user=root --password=zxc db < /stuff.sql'
stuff.sql
LOAD DATA LOCAL INFILE '/stuff.csv' INTO TABLE `stuff` FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n'
Errors with invalid packages.
Decision:
chmod 777 /stuff.csv
PHP runs at its own permission level, and mysql does not get read access to stuff.csv
You get a cookie if you hate chmod 777
source share