0

我尝试使用以下命令将 mysql Query 导出到 CSV 文件中:

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' 

我在 mysql 中收到了这个错误消息:

#1 - Can't create/write to file '\tmp\orders.csv' (Errcode: 2)

我试图修改 xampp\tmp 文件夹中的 .htaccess 文件

从 :

SetHandler Drupal_Security_Do_Not_Remove_See_SA_2006_006 Options None
Options +FollowSymLinks

进入 :

允许所有人

但仍然面临同样的错误消息

4

0 回答 0