Chris Mague 464ec8d473 working replication setup | %!s(int64=2) %!d(string=hai) anos | |
---|---|---|
README.md | %!s(int64=2) %!d(string=hai) anos | |
docker-compose.yml | %!s(int64=2) %!d(string=hai) anos | |
master.cnf | %!s(int64=2) %!d(string=hai) anos | |
proxysql.cnf | %!s(int64=2) %!d(string=hai) anos | |
replica.cnf | %!s(int64=2) %!d(string=hai) anos | |
setup_replication.sh | %!s(int64=2) %!d(string=hai) anos | |
setup_servers.sql | %!s(int64=2) %!d(string=hai) anos |
docker-compose rm --force
docker-compose up
# Wait
./setup_replication.sh
mysql -u radmin -pradmin --protocol=tcp -h 127.0.0.1 -P16032 --prompt='RAdmin> '
mysql --protocol tcp -P 3307 -u root -pmysql1
mysql --protocol tcp -P 3308 -u root -pmysql2
mysql --protocol tcp -P 16033 -u monitoruser -pmonitorpass