Mysql – ERROR 1290 MYSQL secure-file-priv option

MySQL

I have a database which I have been LOADING text files, these were stored in /tmp.

for reasons of permits however this morning when I turn the computer the files were no longer in that folder and attempt the LOAD gives me the next

ERROR 1290 (HY000): The MySQL server is running with the –secure-file-priv option so it can not execute esta statement

I had any problems to use the LOAD so far what could be?

Best Answer

  • /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.