当前位置:网站首页>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=边栏推荐
- 彻底理解位运算——与(&)、非(~)、或(|)、异或(^)
- stc12c5a60s2功能说明(STC12C5A60S2默认触发)
- 这个客制化键盘,秀翻我了~
- Pandownload revival tutorial
- JS preventDefault() 键盘输入限制 onmousewheel stopPropagation停止事件传播
- 2022年全国最新消防设施操作员(中级消防设施操作员)题库及答案
- SaltStack入门
- 文章翻译软件-批量免费翻译软件支持各大翻译接口
- [notes] Apocalypse: list of practical experience and reflection of product managers
- Streamlit machine learning application development tutorial
猜你喜欢

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

Iclr21 (classification) - future classic "vit" an image is worth 16x16 words (including code analysis)

Pytorch:快速求得NxN矩阵的主对角线(diagonal)元素与非对角线元素

Rust Getting Started Guide (crite Management)

idea properties文件显示\u不显示中文的解决

Swing事件处理的过程是怎样的?

Report redirect after authorized login on wechat official account_ The problem of wrong URI parameters

业务可视化-让你的流程图“Run“起来(4.实际业务场景测试)

ES6 conversion of new data type set and arr set map

11、 学习MySQL UNION 操作符
随机推荐
Web 3.0 development learning path
Fantasy 5 (ue5) game engine complete course 2022
11、 学习MySQL UNION 操作符
Force buckle 1331. Array serial number conversion
英文翻译西班牙语-批量英文翻译西班牙工具免费
The opening price soared by 215%! Domestic signal chain chip enterprise Xinhai Technology landed on the scientific innovation board
Pytoch: implementation of crossentropyloss and labelsmoothing
The mystery of ID number
调用整数或字符数组函数里的参数应该传入啥
Transformer for anomaly detection - instra "painting transformer for anomaly detection"
这种动态规划你见过吗——状态机动态规划之股票问题(下)
Rust Getting Started Guide (modules and engineering structures)
My second blog - C language
英文翻译阿拉伯语-批量英文翻译阿拉伯语工具免费
Failed to install app-debug.apk: Failure [INSTALL_FAILED_TEST_ONLY: installPackageLI]
WPF 实现带蒙版的 MessageBox 消息提示框
navicate修改数据库名的方式
Saltstack system initialization
BLDC 6-step commutation simulink
可转债概念表 x Notion 给你方便快捷的体验!