Skip to content

Instantly share code, notes, and snippets.

@sicksand
Created June 20, 2013 02:08
Show Gist options
  • Save sicksand/5819799 to your computer and use it in GitHub Desktop.
Save sicksand/5819799 to your computer and use it in GitHub Desktop.
how to clone/duplicate mysql database. using mysqldump one liner
mysqldump -u <user> --password=<password> <DATABASE_NAME> | mysql -u <user> --password=<password> -h <hostname> <DATABASE_NAME_NEW>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment