I have created the database, a database user and password and then added the user to the database. Then I plugged in the info into the configuration file... leaving the localhost entry as is. When it didn't work, I assumed that it was the localhost entry, since I had added a new site to the HostGator web host manager before the domain name has been transferred.
In other words, I wanted to install and style the WordPress before switching over the domain name from a third party. But in the HostGator web host manager, when creating the new account, I have added the actual domain name for the account that will be transferred once I have the WordPress the way I want it.
Am I making since?