Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save laszlomiklosik/9114156 to your computer and use it in GitHub Desktop.
Save laszlomiklosik/9114156 to your computer and use it in GitHub Desktop.
mysql dump and restore database from command line
#1. dump
mysqldump -u root db_name > dump_name.sql
#2. restore
mysql -u root -p db_name < dump_name.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment