I am using the following query to create a CSV file
SELECT email INTO OUTFILE \"mydata.csv\" FIELDS TERMINATED BY \',\' OPTIONALLY ENCLOSED BY \'\"\' LINES
I suspect you are looking for the file on your client machine.
SELECT .. INTO OUTFILE writes the file on the server machine.
SELECT .. INTO OUTFILE