Mysql workbench login issue

I have a query in mysql I have created a account with test@localhost and i want to access the particular database where I have given access to the db like all necessary permissions and all these my sql accounts are hosted in a server and now when i try to login in local mysql workbench it is giving me error as access is denied.I have given host as localhost and I have given the correct password.Could you please help me regarding this issue.