actually drop database in delete_mysql_database
This commit is contained in:
parent
2b4c9ba33d
commit
7fe405a27d
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue