MySQL导出到文件

时间:2019-02-15 12:03:52

标签: mysql node.js

我有一个node js项目,文件夹为output。此文件夹具有777权限。我通过SELECT INTO OUTFILE查询node-mysql

但是我有Errcode: 13 - Permission denied错误。

MySQLsecure_file_priv=""开头

SQL: SELECT * FROM users INTO OUTFILE '/home/ubuntu/Projects/output/1.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n';

0 个答案:

没有答案