1d4f1f6bf6
Added some of the standard directories darcs-hash:20080506151729-84dde-563da8505e06a7302041c93ab157ced31165876c.gz
15 lines
360 B
Bash
15 lines
360 B
Bash
#!/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
|
|
|
|
|