我有一个node js
项目,文件夹为output
。此文件夹具有777权限。我通过SELECT INTO OUTFILE
查询node-mysql
。
但是我有Errcode: 13 - Permission denied
错误。
MySQL
以secure_file_priv=""
开头
SQL:
SELECT * FROM users INTO OUTFILE '/home/ubuntu/Projects/output/1.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n';