I am trying to use OUTFILE on Ubuntu 20.04 and getting this error: MySQL server version: 8.0.21
Code:
mysql> select * into OUTFILE '/home/yash/Desktop/data2.txt' from ticket;
ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
I tried many solutions but it didn't work on Ubuntu 20.04
If anyone can give a solution for Ubuntu 20.04 and MySQL 8.0.21 then it will be appreciated.