actually drop database in delete_mysql_database

This commit is contained in:
Jan Dittberner 2015-01-02 00:06:31 +01:00
parent 2b4c9ba33d
commit 7fe405a27d

View file

@ -133,5 +133,9 @@ def delete_mysql_database(dbname, username):
""" """
REVOKE ALL PRIVILEGES ON `%(dbname)s`.* FROM %%(username)s@'%%%%' REVOKE ALL PRIVILEGES ON `%(dbname)s`.* FROM %%(username)s@'%%%%'
""" % {'dbname': dbname}, {'username': username}) """ % {'dbname': dbname}, {'username': username})
curs.execute(
"""
DROP DATABASE `%(dbname)s`
""" % {'dbname': dbname})
conn.commit() conn.commit()
return True return True