I am trying to export a MySQL table to a csv file. I am using the following query which I think is correct:
SELECT *
INTO OUTFILE 'result.csv'
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY 'n'
FROM Table
However I get the following error message from MySQL when I try running the query in the SQL query box of phpmyadmin:
1045 - Access denied for user 'user'@'localhost' (using password: YES)
I contacted my host and he could not figure it out since it looks like I have all the right permissions.