2
0

rmdb 347 B

12345678910111213141516
  1. #!/bin/sh
  2. #
  3. # Small script to remove the demo database again.
  4. # This script accepts 1 (optional) argument :
  5. # a database you can connect to. Default is 'testdb'
  6. #
  7. echo -n "Removing table FPdev from db ${1-testdb}..."
  8. mysql ${1-testdb} << EOF >/dev/null
  9. drop table FPdev
  10. EOF
  11. if [ ! $? = 0 ]; then
  12. echo "Failed."
  13. else
  14. echo "Done."
  15. fi
  16. # Ready