
buxbeatz - 2015-04-30 12:14:03
How can i use this script to sync the whole db?
I tried removing last field from master and slave set but it did not work.
I am currently trying to use this script to sync a local db on mamp and one online with the following script:
<?php
include "sync.php";
$sync = new SyncronizeDB();
//masterSet(dbserver,user,password,db,table,index)
$sync->masterSet("localhost","root","root","GB", "item");
//serverSet(dbserver,user,password,db,table,index)
$sync->slaveSet("XXX","XXX","XXX","XXX", "item");
//syncronizing the slave table with the master table (at row level)
$sync->slaveSyncronization()
?>
but page returns me :Database down
the local and online DBs are 100% working.
Thank you