blob: 6d1a55591a3f8d29eddcdf48763711ecf48f31d0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/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
|