Not able to connect mysql

getting error
code: ‘ER_ACCESS_DENIED_ERROR’,
errno: 1045,
sqlState: ‘28000’,
sqlMessage:
“Access denied for user ‘socialusercb’@‘localhost’ (using password: NO)” } }

This is my readme.md file
mysql -u root -p
create database cbsocialmediadb;
create user socialusercb identified with mysql_native_password by ‘socialpasscb’;
grant all privileges on cbsocialmediadb.* to socialusercb;
flush privileges;
grant all privileges on cbsocialmediadb.* to ‘socialusercb’@’%’;
flush privileges;

@kingerdeepti123 do two things, first send me the screen shot of the code you are using for connecting to mysql server, and second to follow these steps to set up your database

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.