You also need to ensure it is turned on in mysql ini!
For xampp bring up control panel and select Mysql->Config my.ini or my.cnf(whichever)
Edit to add/check for following sections
[client]
local_infile=1
then find the [mysqld] section and add the line anywhere under
local_infile=1
restart mysql.
read carefully even though for linux: How do I locate contrib/? - #69 by Naveen_Moses