-
-
Save bdamusis/d007054e784b22a4a252 to your computer and use it in GitHub Desktop.
Import / export sql database via 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 -p -u username -h hostname database_name > dbname.sql |
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 -p -u username -h hostname database_name < file.sql |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment