Last active
March 28, 2018 19:47
-
-
Save tmuzzin/cc42fe9aab9018dd886f1e6f50bcd573 to your computer and use it in GitHub Desktop.
MySQL to CSV
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql -u USER -p -h HOST --database=DATABASE -e "select id, first_name, last_name, email from user" | sed 's/\t/,/g' > users.csv |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment