所以我是初学者使用覆盆子pi2,我试图在我的覆盆子上的phpmyadmin上运行这个SQL查询,但我的文件夹中没有导出文件,但我可以在我的Windows笔记本电脑上运行此查询,所以什么错了? 请帮帮我
DELIMITER $$
CREATE EVENT event1
ON SCHEDULE EVERY '1' MINUTE
STARTS '2016-07-08 17:50:00'
DO
BEGIN
SET @TS = DATE_FORMAT(NOW(),'-%Y-%m-%d_%H.%i');
SET @FOLDER = 'c:/xampp/flogger/';
SET @PREFIX = 'datafrekuensi';
SET @EXT = '.csv';
SET @CMD = CONCAT("SELECT * INTO OUTFILE '",@FOLDER,@PREFIX,@TS,@EXT,
"' FIELDS ENCLOSED BY '""' TERMINATED BY ';' ESCAPED BY '""'",
" LINES TERMINATED BY '\r\n' FROM frequency WHERE Time >= DATE_SUB(NOW(), INTERVAL 1 Minute);");
PREPARE statement FROM @CMD;
EXECUTE statement;
END
EXECUTE statement;
END$$
DELIMITER ;