Skip to content

Instantly share code, notes, and snippets.

@fteem
Created December 13, 2011 02:12
Show Gist options
  • Save fteem/1470128 to your computer and use it in GitHub Desktop.
Save fteem/1470128 to your computer and use it in GitHub Desktop.
mysqldump -u username -p -v olddatabase > olddbdump.sql
mysqladmin -u username -p create newdatabase
mysql -u username -p newdatabase < olddbdump.sql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment