def METHOD_NAME(Name, ConnectionCredential, Ensure):
    cmd=''
    out=''
    code=0
    present=IsDatabasePresent(Name, ConnectionCredential)
    if Ensure == 'Present':
        if present:
            return True
        else :
            cmd="CREATE DATABASE " + Name +  ";"
    elif present:
        cmd = "DROP DATABASE " + Name + ";"
    if len(cmd) > 0 :
        cmd='mysql -u root -e "' + cmd + '"'
        os.environ['MYSQL_PWD'] = ConnectionCredential
        code, out=RunGetOutput(cmd,False)
        os.environ['MYSQL_PWD'] = ''
    return code == 0