root/deployment-scripts/03_resetdb.sh

Revision 89, 313 bytes (checked in by 235, 2 years ago)

release deployment scripts

Line 
1#!/bin/sh
2source settings
3echo "We are dropping the database... ===="
4echo
5
6for i in `echo "show tables" | mysql $DB -u $DBUSER -p$DBPASS | grep -v Tables_in_`;
7do
8  echo $i; echo "DROP TABLE $i"| mysql $DB -u $DBUSER -p$DBPASS
9done
10
11echo "Creating the new database... ===="
12echo
13cd $CODE
14expect $CGI/initdb.exp
15
Note: See TracBrowser for help on using the browser.