Your problem is the user credentials that your passing.
Have you setup the root user without a password and set the host to any (*)?
Normally with a default install of MySQL you specify a root password and by default only local connections can use the root account.
Check out
The main MySQL section
Also
this guide on devshed might help.
That should get you moving again.
Shane.