Created
July 3, 2013 12:50
-
-
Save paulund/5917619 to your computer and use it in GitHub Desktop.
Make database import and export to remote server over SSH. When importing the file make sure it is on a location on the server.
When exporting the file make sure you place it in the correct location.
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