david415 / mysql cluster tools
No description has been added.
Clone this repository (size: 64.2 KB): HTTPS / SSH
$ hg clone http://bitbucket.org/david415/mysql-cluster-tools/
| commit 30: | 541c6753e725 |
| parent 29: | 4a3033ac1c1f |
| branch: | developement |
uncommented the code to setup replication on the new slave...
after the hotcopy operation completes
Changed (Δ112 bytes):
raw changeset »
mysql_innodb_hotcopy.py (5 lines added, 10 lines removed)
Up to file-list mysql_innodb_hotcopy.py:
| … | … | @@ -222,17 +222,12 @@ CHANGE MASTER TO MASTER_HOST='%s', |
222 |
222 |
|
223 |
223 |
dbh_source.close() |
224 |
224 |
|
225 |
# print("setting up replication on the target %s" % target) |
|
226 |
# dbh_target = connection(target, mysql_db_name) |
|
225 |
print("setting up replication on the target %s" % target) |
|
226 |
dbh_target = connection(target, mysql_db_name) |
|
227 |
dbh_target.set_as_slave(master, binlog_file, binlog_pos) |
|
228 |
dbh_target.close() |
|
227 |
229 |
|
228 |
# instead of the below code we should do a START SLAVE |
|
229 |
# none of this is needed i think |
|
230 |
# |
|
231 |
# dbh_target.set_as_slave(master, binlog_file, binlog_pos) |
|
232 |
||
233 |
# dbh_target.close() |
|
234 |
||
235 |
set_multi_user(target) |
|
230 |
# set_multi_user(target) |
|
236 |
231 |
|
237 |
232 |
|
238 |
233 |
except: |
