primordial's avatar

Enable LOCAL_INFILE

I'm trying to load a large CSV file using the MySQL LOCAL_INFILE directive but am getting

The used command is not allowed with this MySQL version

Googling around I found you could add an options array to the DB directive along the lines of 'mysql' => [ ... 'options' => [ PDO::MYSQL_ATTR_LOCAL_INFILE => true ] ],

But I do not have a PDO facade. Any advice? I've never used Lumen before.

0 likes
0 replies

Please or to participate in this conversation.