docker mysql 8 master / slave

22/04/2022

https://github.com/rafipiccolo/docker-mysql-master-slave/blob/master/build.sh

docker rm -f mysql_master mysql_slave;
rm -rf /root/docker/mysql_slave /root/docker/mysql_master;
mkdir -p /root/docker/mysql_slave/data /root/docker/mysql_master/data;

cat - > /root/docker/mysql_master/myconfig.cnf < /root/docker/mysql_slave/myconfig.cnf <

Raccourcis