Last active
August 29, 2015 14:01
-
-
Save lyonsun/0177ab53b396cb43500a to your computer and use it in GitHub Desktop.
export/import mysql database in command line.
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
mysqldump -uUSERNAME -pPASSWORD -hHOSTNAME USER_DATABASE > FILENAME.sql | |
#Then import using: | |
mysql -uUSERNAME -pPASSWORD -hHOSTNAME USER_DATABASE < FILENAME.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment