MySQL export into outfile : CSV escaping chars

I think your statement should look like: SELECT id, client, project, task, description, time, date INTO OUTFILE ‘/path/to/file.csv’ FIELDS TERMINATED BY ‘,’ OPTIONALLY ENCLOSED BY ‘”‘ LINES TERMINATED BY ‘\n’ FROM ts Mainly without the FIELDS ESCAPED BY ‘””‘ option, OPTIONALLY ENCLOSED BY ‘”‘ will do the trick for description fields etc and your numbers … Read more

MYSQL into outfile “access denied” – but my user has “ALL” access.. and the folder is CHMOD 777

Try executing this SQL command: > grant all privileges on YOUR_DATABASE.* to ‘asdfsdf’@’localhost’ identified by ‘your_password’; > flush privileges; It seems that you are having issues with connecting to the database and not writing to the folder you’re mentioning. Also, make sure you have granted FILE to user ‘asdfsdf’@’localhost’. > GRANT FILE ON *.* TO … Read more