[HOW TO] ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement

Hello, I wanted to export the csv file from MySQL command line. And used the guide following the article [HOW TO] Export mysql result to csv file.  All are good if there is no any issue. mysql> select * from devices where status = '2' INTO OUTFILE '/tmp/PLC_active.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n';ERROR 1290 (HY000): The MySQL server is running...