PDA

View Full Version : External SQL


AA2004
Mon 2nd Aug '04, 4:42pm
$servername = 'localhost';

To replace localhost with an IP, do the two systems have to be physically connected by NIC?

Zachery
Mon 2nd Aug '04, 5:27pm
No, they do not. :) but for it to work, on the other host, you need to make sure you allow external connections. it would be best if they were connected by nic

AA2004
Tue 3rd Aug '04, 9:34am
Is it possible to have it pointed at localhost and another IP so if localhost fails it can query the other db?

Steve Machol
Tue 3rd Aug '04, 4:34pm
That require either modifying the code or modifying the servers.

AA2004
Tue 3rd Aug '04, 5:47pm
Which is easier in your opinion?

Steve Machol
Tue 3rd Aug '04, 5:48pm
I really have no idea either way. Sorry.