I am learning MySQL and tried using a LOAD DATA clause. When I used it as below:
LOAD DATA INFILE \"text.txt\" INTO table mytable;
Here is what worked for me in Windows 7 to disable secure-file-priv (Option #2 from vhu's answer):
services.msc.C:\ProgramData\MySQL\MySQL Server 5.6 (ProgramData was a hidden folder in my case).my.ini file in Notepad.secure-file-priv=""services.msc.