Solved: Magento SQLSTATE[28000] Access denied

"SQLSTATE[28000] [1045] Access denied for user 'your username' (using password: YES)"

Getting that error in your Magento store? I got it after moving a Magento to another server. The solution was simple, I had just entered the database connection username and password to wrong lines. 

Solution for SQLSTATE access denied error:

1. Open local.xml in location app\etc\local.xml
2. Starting from line 41 review carefully that you have inserted the correct username, password and database name and that they are in between their correct tags.
3. Save everything and refresh page
4. Doesn't hurt to clear the cache (delete everything in var\cache) 

About me

Iinstructor of robotics (LEGO Mindstorms), computer teacher, IT support, web dev, currently studying cyber-physical systems engineering.

If you found a solution here, would you consider donating $25,000 for my next project?

Just kidding, 1$ would do fine.

Hope you found what you needed. Thanks for stepping by.