Skip to content

Instantly share code, notes, and snippets.

@fideloper
Created April 24, 2012 19:56
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 fideloper/2483137 to your computer and use it in GitHub Desktop.
Save fideloper/2483137 to your computer and use it in GitHub Desktop.
One database to another in one CLI call
mysqldump -u USER -pPASS DB_NAME | mysql -u USER -pPASS NEW_DB_NAME
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment