当前位置:网站首页>MySQL 8 creates master-slave replication based on Clone
MySQL 8 creates master-slave replication based on Clone
2022-07-28 19:36:00 【engchina】
MySQL8 be based on clone Create master-slave replication
step1, preparation , establish 2 individual docker The Internet
docker network create mypubnet --subnet=10.10.0.0/16
docker network create myprvnet --subnet=10.20.0.0/16
step2, start-up 2 individual MySQL Containers
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=边栏推荐
- 2022年全国最新消防设施操作员(中级消防设施操作员)题库及答案
- Nips18 (AD) - unsupervised anomaly detection using geometric transformations using geometric augmentation
- Adobe Flash player 34.0.0.92 and available version modification methods (2021-01-23
- IMU 加热
- JS preventDefault() 键盘输入限制 onmousewheel stopPropagation停止事件传播
- Salt SSH of saltstack
- 第一次写博客
- Share several coding code receiving verification code platforms, which will be updated in February 2022
- JS 批量添加事件监听onclick this 事件委托 target currentTarget onmouseenter onmouseover
- npm安装和卸载全局包
猜你喜欢

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

NDK 系列(5):JNI 从入门到实践,爆肝万字详解!

企业级分布式爬虫框架入门

BLDC 6步换相 simulink

英文翻译阿拉伯语-批量英文翻译阿拉伯语工具免费

英语文章翻译-英语文章翻译软件-免费批量翻译

这个客制化键盘,秀翻我了~

Share several coding code receiving verification code platforms, which will be updated in February 2022

Kotlin Android development novice tutorial

Saltstack configuration management
随机推荐
JS modify table font and table border style
美国将提供250亿美元补贴,鼓励英特尔等芯片制造商迁回产线
Cell综述:人类微生物组研究中的单细胞方法
Salt SSH of saltstack
shared_ PTR and make_ Use of shared
Nips18 (AD) - unsupervised anomaly detection using geometric transformations using geometric augmentation
How openocd directly downloads programs to STM32 board through stlink (solved)
【笔记】《结网:互联网产品经理改变世界》
第一次写博客
智能合约安全——溢出漏洞
Pagoda panel construction novel CMS management system source code measurement - thinkphp6.0
Share several coding code receiving verification code platforms, which will be updated in February 2022
Convertible bond concept table x notation gives you a convenient and fast experience!
Rust Getting Started Guide (modules and engineering structures)
How to use Qianqian listening sound effect plug-in (fierce Classic)
C language cycle sentence strengthening exercises
Rust Getting Started Guide (crite Management)
英文翻译葡萄牙语-批量英文转换葡萄牙语-各种语言免费互译转换
彻底理解位运算——左移、右移
读了三年论文,我今天才学会阅读摘要