Error 13 is nothing but the permission issues. Even i had the same issue and was unable to load data to mysql table and then resolved the issue myself.
Here's the solution:
Bydefault the
--local-infile is set to value 0
, inorder to use LOAD DATA LOCAL INFILE it must be enabled.
So Start mySQL like this :
mysql -u username -p --local-infile
This will make LOCAL INFILE enabled during startup and thus there wont be any issues using it !