Forum Moderators: coopster

Message Too Old, No Replies

mysql_connect to remote server

Cannot work out the replacement for localhost

         

whats up skip

12:47 am on Dec 1, 2003 (gmt 0)

10+ Year Member



I am trying to use php on one web site, but pulling the data out of data base on another server. I don't understand what the replacement should be for "localhost" in the connection string should be.

Any ideas?

jpjones

2:13 am on Dec 1, 2003 (gmt 0)

10+ Year Member



Replace "localhost" with the hostname (e.g. dbhost.domain.com), or preferbly the IP address, of the external database machine.

whats up skip

3:10 am on Dec 1, 2003 (gmt 0)

10+ Year Member



Thanks, this put me in the right direction.