diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-05-06 11:17:29 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-05-06 11:17:29 -0400 |
commit | 1d4f1f6bf6bd8313cbb51dbf61d675408171d1b8 (patch) | |
tree | 8c622e1c4c1cbfc78abe335c1a153e354f29eee4 /_darcs/pristine/scripts/rebuilddb.sh | |
parent | d4fd1c505e14bdef4945e51d4f46a949d3abfb98 (diff) |
add standard directories
Added some of the standard directories
darcs-hash:20080506151729-84dde-563da8505e06a7302041c93ab157ced31165876c.gz
Diffstat (limited to '_darcs/pristine/scripts/rebuilddb.sh')
-rw-r--r-- | _darcs/pristine/scripts/rebuilddb.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/_darcs/pristine/scripts/rebuilddb.sh b/_darcs/pristine/scripts/rebuilddb.sh new file mode 100644 index 000000000..89bc6e252 --- /dev/null +++ b/_darcs/pristine/scripts/rebuilddb.sh @@ -0,0 +1,14 @@ +#!/bin/bash + +export user=$1 +export password=$2 +export DB=$3 +export SCR=$4 + +mysqldump -u $user --password=$password -c -t --hex-blob $DB > /tmp/$DB.sql +mysqladmin -u $user --password=$password -f drop $DB +mysqladmin -u $user --password=$password create $DB +mysql -u $user --password=$password $DB < $SCR +mysql -u $user --password=$password $DB < /tmp/$DB.sql + + |