Skip to content

Instantly share code, notes, and snippets.

@kei2100
Created October 27, 2014 04:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kei2100/4d6d9f5719c6046d1316 to your computer and use it in GitHub Desktop.
Save kei2100/4d6d9f5719c6046d1316 to your computer and use it in GitHub Desktop.
mysql dump database
mysqldump -uroot --opt {database} > {database}.dump
mysqladmin -uroot create {database}
mysql -uroot {database} < {database}.dump
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment