How do I enable LOAD DATA LOCAL INFILE in Propel?
问题 I've tried the solutions from other answers, but so far none have resolved: PDOException 42000 SQLSTATE[42000]: Syntax error or access violation: 1148 The used command is not allowed with this MySQL version I'm preparing a query using PropelPDO. I've tried: $cnct = \Propel::getConnection(); $cnct->setAttribute(\PDO::MYSQL_ATTR_LOCAL_INFILE, true); But this did not prevent the error, so I also tried: $prepare = $cnct->prepare($sql, array( \PDO::MYSQL_ATTR_LOCAL_INFILE => true, )); $prepare-