我正在Windows7上运行Mysql server 8.0。我想将数据导出到csv文件。我检查了secure_file_priv变量。它是“'C:/ Program Files / MySQL / MySQL Server 8.0 / Uploads”。
但是当我通过这些语句导出时。它显示错误:
use classicmodels;
SELECT * FROM employees INTO OUTFILE 'C:/Program Files/MySQL/MySQL Server 8.0/Uploads/data.csv'
COLUMNS TERMINATED BY ','
LINES TERMINATED BY '\r\n';