Skip to content

Instantly share code, notes, and snippets.

@mrhillsman
Created February 18, 2019 19:45
Show Gist options
  • Save mrhillsman/512f63fd48609654b1d888f8c416c3e3 to your computer and use it in GitHub Desktop.
Save mrhillsman/512f63fd48609654b1d888f8c416c3e3 to your computer and use it in GitHub Desktop.
#!/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