Can't establish database connection

I am using your tutorial to install WordPress on my local Windows PC. It all worked until I went to install WordPress. That would not work.

When installing WordPress locally (I type "http://localhost/wordpress/" in the browser's address bar), I get the error message, "Error establishing a database connection".

I did create a new user, b/c I felt "root" was a security risk and generated a secure password. Both are in my password manager. I then edited wp-config.php by assigning the username to the username variable, and I also typed in the password to the password variable that I've assigned to the user password variable in PhpMyAdmin.

Question is: Must root be the user when installing WordPress for the first time?

I have NOT changed port assignments.

Thank you,