du kan gøre noget som :
SET @sql_text =
CONCAT (
"SELECT * FROM `tbl_user` into outfile '/xampp/htdocs/mysite/reports-"
, DATE_FORMAT( NOW(), '%Y%m%d')
, ".csv'"
);
PREPARE s1 FROM @sql_text;
EXECUTE s1;
DROP PREPARE s1;