I am on MySQL 5.7.24 on Windows.
I am trying to export a table to csv:
SELECT
description, comment
FROM
usecase
INTO OUTFILE ' c:\wamp64\tmp\usecase0.csv'
FIELDS ENCLOSED BY '"'
TERMINATED BY ';'
ESCAPED BY '"'
LINES TERMINATED BY '\r\n';
Error:
ERROR 1290 (HY000): The MySQL server is running with the --secure-file-priv option so it cannot execute this statement
I see there are lots of discussions on resolving the error during importing data into mysql, however, the issue I am having is on exporting data from MySQL table to CSV file.
I already run SET GLOBAL local_infile = true;
and confirmed
I also have local-infile
in both [mysql] and [mysqld] sections in my.ini
I don't know what am I missing or what else I can do?
Can anyone please help to sort it out?
Any clue is appreciated.
Thank you very much.