摘要: 配置主从复制 1. 增加主从配置 # 命令行设置 set global read_only=1; set global super_read_only=1; # 重启数据库生效 systemctl restart mysqld 2. 初始化从库数据 3. 开启从库复制 4. 在主库进行操作,在从库验 阅读全文
posted @ 2019-07-23 20:07 LiShiChao 阅读(359) 评论(0) 推荐(0)