这与版本无关,我看了文档这是可以设置的
--------------------------------------------------------------------------------
If you build MySQL from source but don't use the --enable-local-infile option to configure, LOAD DATA LOCAL cannot be used by any client unless it is written explicitly to invoke mysql_options(... MYSQL_OPT_LOCAL_INFILE, 0). See section 21.2.3.167 mysql_options(). 
--------------------------------------------------------------------------------