Problem creating MySQL database and wordpress

After creating a new user in putty and giving root privileges, I was getting an error during MySQL & Wordpress setup.

ERROR 1045 (28000): Access denied for user 'newuser'@'localhost' (using password: YES)

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Also, you can find here guideline about how to solve this issue. I use it when I had a similar problem with my course project where I’ve been complete my progress report (like in this guide