Database Setup error SQLSTATE[HY000] [1045] Access denied for user

Hi,

When i’m trying to access the database setup it’s getting below error .Could please help on below issue.I’m setup in local mac machine
Error while trying to connect to the database server: SQLSTATE[HY000] [1045] Access denied for user ‘username’@‘localhost’ (using password: YES)