Skip to content

Instantly share code, notes, and snippets.

@paulund
Created July 3, 2013 12:50
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save paulund/5917619 to your computer and use it in GitHub Desktop.
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.
mysqldump -p -u username -h hostname database_name > dbname.sql
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