What is the hostname for a Wordpress database

Asked by:
sandy2080 / 13 Points
2013-09-14 1:27 pm EST

I am trying to install wordpress to a sub domain I just created.
I created a new database, username and psw. then, I connected the usermame to the corresponding database.
I am getting "Error establishing a database connection"
I am not sure what Database host I should use? Thanks in advance!

To ask this user for more information, please first login.

To submit an answer, please login.



7,056 Points
2013-09-16 10:07 am EST
Hello sandy2080,

Thank you for your question. If you are connecting to a database within your account, the hostname you should use is:

If you are connecting to a remote database (one hosted on another server), you would use the domain name. For example:

If you are having trouble installing Wordpress manually, I recommend using Softaculous to install Wordpress, since it is a simple one-click installation.

If you have any further questions, feel free to post them below.
Thank you,


To submit a comment on this answer, please first login.

thank you,
I will have a look at Softaculous.

13 Points

2013-09-16 10:29 am EST
Want to share this Question?

News / Announcements

Update to SSL Certificates - Certificate Warnings
1969-12-31 11:00 am EST
Hits: 624
What is the Heartbleed bug?
1969-12-31 11:00 am EST
Hits: 234

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.