I am using MySQL LOAD DATA LOCAL INFILE command and I get this error:
LOAD DATA LOCAL INFILE
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1148 The
In addition to using local-infile with the MySQL server (you can put this in the /etc/my.cnf file too), you also need to enable PDO to allow it:
local-infile
true) );
Otherwise it won't work, regardless of the value of local-infile on the MySQL server.