I was wondering if anyone knew how to connect to a mysql database that is not on the localhost
usually i just simply connect to the local host by typing:
shell> mysql -h localhosot -u user -p Enter password: ******
mysql_connect($DBhost,$DBuser,$DBpass) or die("Unable to connect to database"); @mysql_select_db("$DBName") or die("Unable to select database $DBName");
however, i am creating a site on domain1.com but want it to connect to mysql database I have on domain2.com.
Anyone know what the correct host name would be or anything?