Skip to content

Instantly share code, notes, and snippets.

@stevepaulo
Last active May 29, 2018 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevepaulo/a850f78da5517ba6f36c57021fc94cdc to your computer and use it in GitHub Desktop.
Save stevepaulo/a850f78da5517ba6f36c57021fc94cdc to your computer and use it in GitHub Desktop.
Create CSV from MySQL output
INTO OUTFILE '/var/lib/mysql-files/orders.csv' FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment