Compare commits

...

3 commits

Author SHA1 Message Date
Micke Nordin d3e0f41ff1 Rollback fix 2024-10-07 12:22:03 +02:00
Micke Nordin 8b74bd9c75 We want full compat 2024-10-07 12:22:03 +02:00
Micke Nordin 5c16a783e9 Add mysql command to host 2024-10-07 12:22:03 +02:00

View file

@ -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_PASSWORD='<%= @backup_password%>', MASTER_SSL=1"
master_command="${master_command}, MASTER_CONNECT_RETRY=20"
zcat ${init_file} | tail +2 | ${mysql}
zcat ${init_file} | ${mysql}
${mysql} -e "${master_command}"
${mysql} -e "START SLAVE"
sleep 3s