Sorry if I confusd you.
The code is what I have in the file in the connections folder called powerstoreconnection.php
The username and password are what I set when I created the database on my local server.
Root is the "standard" but you could set it to anything as you can the password.
Sorry this is a bit rushed but I'm off out for the day, If you get stuck re email me when you get back