# 开放端口
sudo firewall-cmd --add-port=8082/tcp --permanent# 查看端口是否放行
firewall-cmd --query-port=8082/tcp# 重启防火墙
sudo firewall-cmd --reload?
# 进入docker容器
docker exec -it mysql bash
# 重启docker
sudo systemctl daemon-reload
sudo systemctl restart docker
CREATE USER 'hehx'@'%' IDENTIFIED BY '123';
GRANT REPLICATION SLAVE ON *.* TO 'hehx'@'%';