Skip to content

Instantly share code, notes, and snippets.

@jasperf
Last active December 11, 2015 02:18
Show Gist options
  • Save jasperf/4529189 to your computer and use it in GitHub Desktop.
Save jasperf/4529189 to your computer and use it in GitHub Desktop.
Importing and Exporting (Backup) MySQL dump from the command line #mysql #import #export
mysql -u user -p -h host.com database-name < dump.sql //importing
mysqldump -u user -p(password) -h hostname database-name > filename.sql // exporting or backing up database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment