Skip to content

breeze2/mysql-mha-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mysql-mha-docker

mysql mha docker compose

Usage

  1. download
$ cd /tmp
$ git clone https://github.com/breeze2/mysql-mha-docker.git
$ cd mysql-mha-docker
  1. run containers
$ docker-compose up -d
  1. start ssh service in all containers
$ sh ./scripts/ssh_start.sh 
  1. copy ssh public key to each container
$ sh ./scripts/ssh_share.sh 
  1. check mha ssh
$ sh ./scripts/mha_check_ssh.sh
  1. set mysql replication (master, backup and slave)
$ sh ./scripts/mysql_set_mbs.sh
  1. check mha repl
$ sh ./scripts/mha_check_repl.sh
  1. start mha manager
$ sh ./scripts/mha_start_manager.sh