Skip to content

Instantly share code, notes, and snippets.

@hpatoio
Created November 14, 2012 09:33
Show Gist options
  • Save hpatoio/4071207 to your computer and use it in GitHub Desktop.
Save hpatoio/4071207 to your computer and use it in GitHub Desktop.
Export MySQL database to CSV file
hpatoio@namazu:~$ mysqldump -uroot -p DATABASE_NAME -T '/home/simone/export_csv' --fields-terminated-by "," --fields-enclosed-by '"' --lines-terminated-by "\n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment