Unable to Load Data INFILE/OUTFILE
The difference between the two is that without the LOCAL keyword the command requests the server to find the file and load data from it. With the LOCAL keyword, the MySQL client (e.g. the customer's script, PHPmyAdmin, or the customer connecting from ssh etc) is what does the loading and then passes the data to MySQL. As such, there are no special permissions needed for customers to do a "LOAD DATA LOCAL"
There are some alternatives to this, if you're trying to import or export a databases please use the following
- LOAD DATA INFILE ALTERNATIVE FROM SSH:
$ echo "source databasefile.sql" | mysql -u user -ppassword databasename
- LOAD DATA OUTFILE ALTERNATIVE FROM SSH:
$ mysql -u user -ppassword databasename > outputfile.sql