Add a tools/heat-db-drop script for fatal error recovery

Signed-off-by: Steven Dake <sdake@redhat.com>
This commit is contained in:
Steven Dake 2012-04-15 18:53:39 -07:00
parent 67c6131536
commit aa02d3270e
1 changed files with 8 additions and 0 deletions

8
tools/heat-db-drop Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
cat << EOF | mysql -u root -p
DROP USER 'heat'@'localhost';
DROP USER 'heat'@'%';
DROP DATABASE heat;
flush privileges;
EOF