Membership is FREE, giving all registered users unlimited access to every DNForum feature, resource, and tool! Optional membership upgrades unlock exclusive benefits like profile signatures with links, banner placements, appearances in the weekly newsletter, and much more - customized to your membership level!

Difference between DB host name and DB name?

Status
Not open for further replies.

Rockefeller

Level 11
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?
 

mulligan

Level 7
Legacy Platinum Member
Joined
Dec 22, 2005
Messages
882
Reaction score
0
host name would be something like ... mysql.domain-name.com
 

tristanperry

Domainer & Web/Software Dev
Legacy Exclusive Member
Joined
Jan 5, 2007
Messages
1,584
Reaction score
6
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:

south

DNF Addict
Legacy Exclusive Member
Joined
Dec 31, 2006
Messages
4,688
Reaction score
168
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.

Who has viewed this thread (Total: 1) View details

The Rule #1

Do not insult any other member. Be polite and do business. Thank you!

Members Online

Premium Members

Our Mods' Businesses

*the exceptional businesses of our esteemed moderators

Top Bottom