I am learning MySQL and tried using a LOAD DATA clause. When I used it as below:
LOAD DATA
LOAD DATA INFILE \"text.txt\" INTO table mytable;
On Ubuntu 14 and Mysql 5.5.53 this setting seems to be enabled by default. To disable it you need to add secure-file-priv = "" to your my.cnf file under the mysqld config group. eg:-
secure-file-priv = ""
[mysqld] secure-file-priv = ""