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;
For mysql 8.0 version you can do this:
mysql.server stop mysql.server start --secure-file-priv=''
It worked for me on Mac High Sierra.