• Welcome to DNForum.com - Domain Investor Forum, Free Domain Marketplace and a community for 45+ domain pros
    If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the oldest global domain name community on the internet and continues to grow every day. There are over 45,000 domainers on DNForum doing everything from buying domains, selling domains, using our free in-house built tools, learning about domains and discussing domains. Take a minute and Register.

Difference between DB host name and DB name?

Status
Not open for further replies.

Rockefeller

New Member
Legacy Exclusive Member
Joined
Apr 8, 2005
Messages
8,011
Reaction score
58
It says the DBs name is closing1_localhost, so where can I find the DB host name? Is it always localhost?
 
host name would be something like ... mysql.domain-name.com
 
The hostname is the actual name of the server where MySQL is installed. If everything is on the one server (i.e. it's not a 'complicated' cluster), then the hostname is simply "localhost"

So yes, it's *usually* localhost.

If (say) it's a cluster of servers though, then the DB hostname would be the IP address of the server where MySQL is installed on.
 
Last edited:
The hostname is the actual name of the server where MySQL is installed. If everything is on the one server (i.e. it's not a 'complicated' cluster), then the hostname is simply "localhost"

So yes, it's *usually* localhost.

If (say) it's a cluster of servers though, then the DB hostname would be the IP address of the server where MySQL is installed on.

Correct. It's very unusual to have it as anything else. For security purposes, it is much safer to have the sql server on the same machine (localhost, which is 127.0.0.1) rather than on a public IP address.
 
Status
Not open for further replies.
Back
Top Bottom