views:

52

answers:

3

i am installing a mysql database for the very first time on my web hosting. and am stuck. what value to put in $host in connection config of mysql DB? the rest i know. till now i have been using localhost. now i am going live. from where to get the host information?

A: 

Try the IP of the database server. Should be able to get that from whatever hosting control panel they offer.

Brad
+2  A: 

Only your provider knows.

It's likely to be localhost there as well, but you'll need user name and password from your provider even in that case.

Pekka
+2  A: 

With all the web hosting providers I have used in the past, they have all used localhost, as opposed to an IP.

Michael
Yes, most do, but you should always check with them first.
Sneakyness
Dreamhost.com, who I use, does not use localhost.
Tim