The set-variable
method of setting variables was deprecated in MySQL 5, and instead you can set the variable by name directly in my.cnf
.
This works for me in MariaDB 5.5.34:
[mysqld]
local-infile=0
MariaDB's documentation on setting server variables recommends setting values in my.cnf
using the format
variable-name = "value"