257 |
print "Creating replication triggers\n"; |
print "Creating replication triggers\n"; |
258 |
|
|
259 |
my $cmnd = "$basedir/../bin/MasterAddTable"; |
my $cmnd = "$basedir/../bin/MasterAddTable"; |
260 |
$cmnd .= " --host=$opt{h}" if($opt{h}); |
$cmnd .= " --masterhost=$opt{h}" if($opt{h}); |
261 |
$cmnd .= " --user=$opt{u}" if($opt{u}); |
$cmnd .= " --masteruser=$opt{u}" if($opt{u}); |
262 |
$cmnd .= " --password=$opt{p}" if($opt{p}); |
$cmnd .= " --masterpassword=$opt{p}" if($opt{p}); |
263 |
$cmnd .= " $opt{d}"; |
$cmnd .= " $opt{d}"; |
264 |
|
|
265 |
foreach my $name (sort keys %unique_key) { |
foreach my $name (sort keys %unique_key) { |
286 |
print "Initialising slave tables\n"; |
print "Initialising slave tables\n"; |
287 |
|
|
288 |
my $cmnd = "$basedir/../bin/SlaveAddTable"; |
my $cmnd = "$basedir/../bin/SlaveAddTable"; |
289 |
$cmnd .= " --host=$opt{h}" if($opt{h}); |
$cmnd .= " --slavehost=$opt{h}" if($opt{h}); |
290 |
$cmnd .= " --user=$opt{u}" if($opt{u}); |
$cmnd .= " --slaveuser=$opt{u}" if($opt{u}); |
291 |
$cmnd .= " --password=$opt{p}" if($opt{p}); |
$cmnd .= " --slavepassword=$opt{p}" if($opt{p}); |
292 |
$cmnd .= " $opt{d}"; |
$cmnd .= " $opt{d}"; |
293 |
|
|
294 |
foreach my $name (sort keys %unique_key) { |
foreach my $name (sort keys %unique_key) { |