ERROR 1290 MYSQL secure-file-priv option
/tmp is, by design, cleared on reboot.  This cleans up certain trash that might be left behind by a crash.  And it is a security feature.
LOAD FILE INFILE is a security hole waiting for hackers to march in.  5.7 (finally) got serious about it, and partially plugged it by having --secure-file-priv.