File: mysql_drop.sql.in

package info (click to toggle)
horde2 2.2.8-1sarge3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,832 kB
  • ctags: 2,897
  • sloc: php: 12,784; sh: 954; sql: 149; makefile: 104; perl: 97; xml: 24; pascal: 6
file content (17 lines) | stat: -rw-r--r-- 376 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# $Horde: horde/scripts/db/mysql_drop.sql,v 1.1.2.1 2001/11/27 04:27:32 chuck Exp $
#
# You can simply direct this file to mysql as STDIN:
#
# $ mysql --user=root --password=<MySQL-root-password> < mysql_drop.sql

CONNECT mysql;

DELETE FROM user WHERE user = '@dbuser@';

DELETE FROM db WHERE user = '@dbuser@';

DROP DATABASE IF EXISTS @dbname@;

FLUSH PRIVILEGES;

# Done!