27
基于Docker的Mysql主从复制搭建-dking
source link: https://blog.51cto.com/dking/2543043
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
利用Docker搭建主从服务器首先拉取docker镜像,我们这里使用5.7版本的mysql:dockerpullmysql:5.7然后使用此镜像启动容器,这里需要分别启动主从两个容器Master(主):dockerrun-p3311:3306--namemysql3311-eMYSQL_ROOT_PASSWORD=root-dmysql:5.7Slave(从):dockerrun-p3312:33
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK