如何将Mysql Server中目录\xampp\tmp的权限更改为write
因为当我想使用下面的查询创建和写入 csv 文件时,我在 mysql 中遇到此错误消息(无法创建/写入文件 '\tmp\orders.csv'(错误代码:2))
查询:
SELECT g.id, g.name, g.date, g.date_mod, g.status, cree_par, modifier_par
FROM glpi_tickets g , (select id, concat(realname , ' ' , firstname)
cree_par from glpi_users ) c, (select id, concat(realname , ' ' ,
firstname) modifier_par from glpi_users) m
where users_id_recipient <> users_id_lastupdater
and users_id_recipient = c.id
and users_id_lastupdater = m.id
INTO OUTFILE '/tmp/orders.csv'
FIELDS TERMINATED BY ','
ENCLOSED BY '"'
LINES TERMINATED BY '\n'
提前谢谢^^