I saw that this topic was already discussed and I tried all the methods described but without success.
Here is my problem:
I am try to config a sv XAMPP 1.7.3. I defined my root pass also other users. No problem. I tested, it works also in shell.
Now, when I type localhost, it loads perfectly as long as it is the xampp defaut. If I am trying to upload my site with mysql DB, it says: Access denied for user 'root'@'localhost' (using password: NO)....
I tried all the methods, modifying the config.php in my adminphp no result.
I must say that if I delete the root pass (leave it blank), my website (localhost/mysite/) loads perfectly.... what is the cause??? Anyone knows?... it is urgent.