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
2009-12-28 23:10:16
+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
2009-12-28 23:11:08
+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
2009-12-28 23:17:09
Yes, most do, but you should always check with them first.
Sneakyness
2009-12-29 00:15:37
Dreamhost.com, who I use, does not use localhost.
Tim
2009-12-29 00:28:40