##### 参考 https://github.com/datacharmer/mysql-sandbox
##### 必须下载一个二进制mysql
wget https://github.com/datacharmer/mysql-sandbox/releases/download/3.2.13/MySQL-Sandbox-3.2.13.tar.gz
yum install perl-ExtUtils-MakeMaker perl-Data-Dumper
tar -zxvf MySQL-Sandbox-3.2.13.tar.gz
perl Makefile.PL
make
make test
make install
useradd -u 1803 mysql
groupadd -g 1803 mysql
##### 安装主从复制 一主两从
make_replication_sandbox /tmp/mysql-5.7.17-linux-glibc2.5-x86_64.tar.gz
##### root 默认密码 msandbox
##### 数据目录下包含各类脚本 (启动、关闭、修改端口等脚本)