MySQL master-slave replication with using Docker.
To run this examples you will need to start containers with "docker-compose" and after starting setup replication. See commands inside ./build.sh.
./build.sh
docker exec mysql_master sh -c 'mysql -u root -p111 -e "SHOW MASTER STATUS \G"'
docker exec mysql_slave sh -c 'mysql -u root -p111 -e "SHOW SLAVE STATUS \G"'
php init_data.php
php checking_data.php