I am trying to use LOAD DATA INFILE to insert some records into a table. Unfortunately, it\'s not working.
LOAD DATA INFILE
Here are some details
If I use this i
Check docs http://php.net/manual/en/ref.pdo-mysql.php.
Basically you need:
PDO::MYSQL_ATTR_LOCAL_INFILE => true
Set at instantiation.
Example:
$conn = new \PDO("mysql:host=$server;dbname=$database;", "$user", "$password", array( PDO::MYSQL_ATTR_LOCAL_INFILE => true, ));