Rollback fix
This commit is contained in:
parent
bb8f2d8b67
commit
76700f595d
|
@ -7,7 +7,7 @@ if [[ -f ${init_file} ]]; then
|
||||||
master_command="${master_command}, MASTER_HOST='<%= @first_db %>', MASTER_USER='backup'"
|
master_command="${master_command}, MASTER_HOST='<%= @first_db %>', MASTER_USER='backup'"
|
||||||
master_command="${master_command}, MASTER_PASSWORD='<%= @backup_password%>', MASTER_SSL=1"
|
master_command="${master_command}, MASTER_PASSWORD='<%= @backup_password%>', MASTER_SSL=1"
|
||||||
master_command="${master_command}, MASTER_CONNECT_RETRY=20"
|
master_command="${master_command}, MASTER_CONNECT_RETRY=20"
|
||||||
zcat ${init_file} | tail +2 | ${mysql}
|
zcat ${init_file} | ${mysql}
|
||||||
${mysql} -e "${master_command}"
|
${mysql} -e "${master_command}"
|
||||||
${mysql} -e "START SLAVE"
|
${mysql} -e "START SLAVE"
|
||||||
sleep 3s
|
sleep 3s
|
||||||
|
|
Loading…
Reference in a new issue