#1045 - Access denied for user 'root'@'localhost' (using password: NO)

When getting this error after trying to login to your local mysql. Do the following:

Open your mysql program folder.
Find and click on : resetroot.bat
Close xammp and restart.

Let me know if this helps