Skip to content

Instantly share code, notes, and snippets.

@WillSquire
Last active July 15, 2017 17:17
Show Gist options
  • Select an option

  • Save WillSquire/ccd87760bdce6c002e2ae10ebecefad6 to your computer and use it in GitHub Desktop.

Select an option

Save WillSquire/ccd87760bdce6c002e2ae10ebecefad6 to your computer and use it in GitHub Desktop.
Export/Import database dump via command line

Export a database dump via command line:

mysqldump -u <username> -p <databasename> > <filename.sql>

Import database dump via command line:

mysql -u <username> -p <databasename> < <filename.sql>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment