fpc/packages/mysql/scripts/rmdb
marco 149c56bb55 * Basic moving and updating of mysql. makefile.fpc's included, regened makefiles not.
fpmake also in separate commit (will follow shortly)

git-svn-id: trunk@9922 -
2008-01-26 13:08:46 +00:00

17 lines
347 B
Bash

#!/bin/sh
#
# Small script to remove the demo database again.
# This script accepts 1 (optional) argument :
# a database you can connect to. Default is 'testdb'
#
echo -n "Removing table FPdev from db ${1-testdb}..."
mysql ${1-testdb} << EOF >/dev/null
drop table FPdev
EOF
if [ ! $? = 0 ]; then
echo "Failed."
else
echo "Done."
fi
# Ready