Skip to content

Instantly share code, notes, and snippets.

@chrishomer
Created May 11, 2011 22:35
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 chrishomer/967537 to your computer and use it in GitHub Desktop.
Save chrishomer/967537 to your computer and use it in GitHub Desktop.
function resetData {
mysql -u root --execute="DROP DATABASE ${1:-thredup3_development};"
mysql -u root --execute="CREATE DATABASE ${1:-thredup3_development};"
gzip -d ./tmp/thredup.sql.gz
mysql -u root ${1:-thredup3_development} < ./tmp/thredup.sql
mysql -u root ${1:-thredup3_development} < ./db/clean_test_data.sql
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment