def METHOD_NAME(Name, Credential,  ConnectionCredential, Ensure):
    cmd=''
    out=''
    code=0
    present=IsUserPresent(Name, ConnectionCredential)
    if Ensure == 'Present':
        if present:
            cmd="SET PASSWORD FOR " + Name + " = PASSWORD('"+ Credential + "');"
        else :
            cmd="CREATE USER " + Name + " IDENTIFIED BY '" + Credential + "';"
    elif present:
        cmd = "DROP USER " + Name + ";"
    if len(cmd) > 0 :
        cmd='mysql -u root -e "' + cmd + ' FLUSH PRIVILEGES;"'
        os.environ['MYSQL_PWD'] = ConnectionCredential
        Print(cmd)
        code, out=RunGetOutput(cmd,False)
        os.environ['MYSQL_PWD'] = ''
    return code == 0