I have 2 identicall web servers with apache and mysql working.
I want to backup an database from server1 to server2 and i dont want to get the database files and copy them to server2 i want to use querrys.
The php that updates databases is on the server1 or localhost
Some code here:
and when i want to execute a querry on the remote server(server2) dont want to.
What to do if this is posible to work? ________
George, M
I want to backup an database from server1 to server2 and i dont want to get the database files and copy them to server2 i want to use querrys.
The php that updates databases is on the server1 or localhost
Some code here:
Code:
//first connexion on local server(server1)
$con=mysql_connect("localhost")
or die("Error server1");
mysql_select_db("database1",$con);
$con1=mysql_connect("server2")
or die("Error server2");
mysql_select_db("database1",$con1);
and when i want to execute a querry on the remote server(server2) dont want to.
What to do if this is posible to work? ________
George, M