Created
February 18, 2019 19:45
-
-
Save mrhillsman/512f63fd48609654b1d888f8c416c3e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# mysql-db-clone.sh old-db dumpfile new-db | |
mysqldump $1 > $2 | |
mysqladmin create $3 | |
mysql $3 < $2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment