17.1.1.7 Setting Up Replication with New Master and Slaves 设置复制对于新的Master和Slaves:

时间:2023-03-09 09:30:17
17.1.1.7 Setting Up Replication with New Master and Slaves 设置复制对于新的Master和Slaves:
17.1.1.7 Setting Up Replication with New Master and Slaves 设置复制对于新的Master和Slaves:

最简单和最直接的方法是设置复制用于使用新的master和slave servers.

你有可以使用这种方法如果你设置新的servers 但是有一个存在的数据库dump 从一个不同的server ,你需要加载到你的复制环境。

通过loading 数据到一个新的master,数据会自动复制到slaves.

设置复制在一个新的master 和slave:

1.配置MySQL master 需要的配置选项

2.启动master

3.设置用户

4.得到master 状态信息

5.在master上,释放read lock

 UNLOCK TABLES;

6.在slave上,编辑MySQL 配置文件

7.启动MySQL slave

8.种一个语句来设置master 复制 服务器配置