Skip to content

Instantly share code, notes, and snippets.

@kacinskas
Created September 19, 2013 13:15
Show Gist options
  • Save kacinskas/6623323 to your computer and use it in GitHub Desktop.
Save kacinskas/6623323 to your computer and use it in GitHub Desktop.
MySQL duplicate db
CREATE DATABASE duplicateddb;
mysqldump -h host -u admin -p originaldb | mysql -h host -u backup -ppassword duplicateddb;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment