Created
August 13, 2014 16:24
-
-
Save carltondickson/f53c9e675a3d3e35366e to your computer and use it in GitHub Desktop.
MySQL select certain data into data dump
This file contains 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
# Following needs the file permission, double check you look on the DB server to find the outfile! | |
SELECT .. INTO OUTFILE '/home/foo/myfile.csv' | |
# If no file permission try command line instead | |
mysql -e "SELECT * FROM foo ORDER BY bar" > '/path/to/file' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment