7
print "Relationship with %s broken." % database_name
9
open(broken_path,'w').close()
11
cursor = get_db_cursor()
13
cursor.execute("revoke all privileges on `%s`.* from `%s`" % (database_name, user))
14
print "revoked privileges for `%s` on database `%s`" % (user, database_name)
15
except Exception as e:
16
print "revoking failed, possibly incomplete relation. %s" % (e)
18
if slave and slave_configured:
19
os.unlink(slave_configured_path)