I have tried some of the above answers and enabled the 'allow_local_infile' in the php.ini file to no avail. What finally worked was opening MySQLWorkbench selecting Manage Connections> Advanced and added the OPT_LOCAL_INFILE flag set to 1.
Solution was found here: https://virtual-dba.com/blog/error-code-2068-load-data-local-infile-file-request-rejected-due-to-restrictions-on-access/