I am trying to export data from a table to excel file.
I am using the select ... INTO ... file method to do so. I am getting the error
Error Code: 1290 The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
The output of below query is NULL.
SHOW VARIABLES LIKE "secure_file_priv";
In the post below, staza resolved the issue by adding LOCAL> But their issue was while working with importing csv to MySQL while mine is exporting from MySQL to csv. Is there any "LOCAL" equivalent for the export issue?
How should I tackle --secure-file-priv in MySQL?
Thanks in advance!!