diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-09-22 15:58:24 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-09-22 15:58:24 -0400 |
commit | d53b34e403ca62dbc7c515e94110db9b602f16a8 (patch) | |
tree | 28f1bd98af98df30b83bb72fb603590af71c6c84 /scripts/cleardb.sh | |
parent | e24425d44ea6416f6d20add0e1e872fb23ff5214 (diff) |
clear and rebuild db scripts
darcs-hash:20080922195824-5ed1f-f95ae048209e44e4de7698d98eb8a01121a2231d.gz
Diffstat (limited to 'scripts/cleardb.sh')
-rwxr-xr-x | scripts/cleardb.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/cleardb.sh b/scripts/cleardb.sh new file mode 100755 index 000000000..06690ed70 --- /dev/null +++ b/scripts/cleardb.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +export user=$1 +export password=$2 +export DB=$3 +export SCR=$4 + +mysqladmin -u $user --password=$password -f drop $DB +mysqladmin -u $user --password=$password create $DB +mysql -u $user --password=$password $DB < $SCR + |