You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATEDATABASEdemo;
use demo;
CREATETABLElist (
id int auto_increment key,
name varchar(30)
);
insert into list (name) values ('List 1');
insert into list (name) values ('List 2');
insert into list (name) values ('List 3');
docker run -it -d \
--network easyhaproxy \
-e MYSQL_ALLOW_EMPTY_PASSWORD=true \
--label easyhaproxy.mysql.mode=tcp \
--label easyhaproxy.mysql.localport=3306 \
--label easyhaproxy.mysql.port=3306 \
--label easyhaproxy.mysql.host=mysql1.haproxy \
--name mysql1 \
mysql:8.0
docker exec -it mysql1 mysql -u root # Run the SQL Here
docker run -it -d \
--network easyhaproxy \
-e MYSQL_ALLOW_EMPTY_PASSWORD=true \
--label easyhaproxy.mysql.mode=tcp \
--label easyhaproxy.mysql.localport=3306 \
--label easyhaproxy.mysql.port=3306 \
--label easyhaproxy.mysql.host=mysql2.haproxy \
--name mysql2 \
mysql:8.0
docker exec -it mysql1.local mysql -u root # Run the SQL Here
docker stop mysql1 # You can stop and start to see EasyHAProxy find them
docker stop mysql2 # You can stop and start to see EasyHAProxy find them