Как включить LOAD DATA LOCAL INFILE в MySQL/MariaDB

PHP Fatal error: Uncaught mysqli_sql_exception: The used command is not allowed because the MariaDB server or client has disabled the local infile capability in file.php

Редактируем конфиги MySQL (MariaDB) и PHP.

my.cnf
local-infile=1

php.ini
mysqli.allow_local_infile = On

Добавить комментарий