当前位置:网站首页>MySQL8 基于clone创建主从复制
MySQL8 基于clone创建主从复制
2022-07-28 17:46:00 【engchina】
MySQL8 基于clone创建主从复制
step1,事前准备,创建2个docker网络
docker network create mypubnet --subnet=10.10.0.0/16
docker network create myprvnet --subnet=10.20.0.0/16
step2,启动2个MySQL容器
docker run --name mysql101 --net mypubnet --add-host host101:10.10.0.101 --add-host host102:10.10.0.102 --hostname host101 --ip 10.10.0.101 --restart unless-stopped --env MYSQL_ROOT_HOST=10.10.0.% --env MYSQL_ROOT_PASSWORD=oracle -d mysql/enterprise-server:8.0 mysqld --server-id=101 --report-host=host101 --gtid-mode=on --enforce_gtid_consistency
docker network connect --ip 10.20.0.101 myprvnet mysql101
docker run --name mysql102 --net mypubnet --add-host host101:10.10.0.101 --add-host host102:10.10.0.102 --hostname host102 --ip 10.10.0.102 --restart unless-stopped --env MYSQL_ROOT_HOST=10.10.0.% --env MYSQL_ROOT_PASSWORD=oracle -d mysql/enterprise-server:8.0 mysqld --server-id=102 --report-host=边栏推荐
- 串口接收应用——环形缓冲buffer
- WPF 实现带蒙版的 MessageBox 消息提示框
- Convertible bond concept table x notation gives you a convenient and fast experience!
- VAE:变分自编码器的理解与实现
- SaltStack常用的模块
- Ardupilot software in the loop simulation and online debugging
- Pytorch:快速求得NxN矩阵的主对角线(diagonal)元素与非对角线元素
- NDK series (5): from introduction to practice, JNI explodes the liver and explains everything in detail!
- Failed to install app-debug.apk: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]
- Image processing web application development tutorial
猜你喜欢

JS modify table font and table border style

可转债概念表 x Notion 给你方便快捷的体验!

Pagoda panel construction novel CMS management system source code measurement - thinkphp6.0

英文翻译葡萄牙语-批量英文转换葡萄牙语-各种语言免费互译转换

文章翻译软件-批量免费翻译软件支持各大翻译接口

英文翻译西班牙语-批量英文翻译西班牙工具免费

navicate修改数据库名的方式

Pytoch: quickly find the main diagonal elements and non diagonal elements of NxN matrix

Fantasy 5 (ue5) game engine complete course 2022

业务可视化-让你的流程图“Run“起来(4.实际业务场景测试)
随机推荐
SaltStack之salt-ssh
Smart contract security - overflow vulnerability
The opening price soared by 215%! Domestic signal chain chip enterprise Xinhai Technology landed on the scientific innovation board
Srs4.0 installation steps
Pytoch: implementation of crossentropyloss and labelsmoothing
Quickly install torch spark, torch geometric and other packages in moment pool cloud
英文翻译阿拉伯语-批量英文翻译阿拉伯语工具免费
这种动态规划你见过吗——状态机动态规划之股票问题(下)
My second blog - C language
Kotlin Android development novice tutorial
Search problems and technologies
SaltStack系统初始化
Investment of 3.545 billion yuan! Gree Group participates in Xiaomi industry fund
Get to know nodejs for the first time (with cases)
Nips18(AD) - 利用几何增广的无监督异常检测《Deep Anomaly Detection Using Geometric Transformations》
Web 3.0 development learning path
Redis master-slave architecture (how to calculate sizeof function)
App自动化测试是怎么实现H5测试的
STC12C5A60S2 function description (STC12C5A60S2 is triggered by default)
Salt SSH of saltstack