if you haven’t already be sure load data local infile is turned on, see this post
load data local infile