更新 mysql.md
This commit is contained in:
parent
b211850642
commit
777f52bcb5
4
mysql.md
4
mysql.md
|
@ -1782,6 +1782,8 @@ mysql> show databases;
|
|||
|
||||
如果是克隆的服务器需要修改每台数据库的server-uuid
|
||||
|
||||
做域名解析 该实验解析 master-1 master-2
|
||||
|
||||
#### 2.Master-1部署
|
||||
|
||||
安装数据库:(略)
|
||||
|
@ -1996,7 +1998,7 @@ owners.
|
|||
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
|
||||
|
||||
mysql> change master to
|
||||
-> master_host='master-1',
|
||||
-> master_host='master-1', //这块做域名解析 就直接写解析的名称 如果没有就写另一台mysql服务器ip
|
||||
-> master_user='slave',
|
||||
-> master_password='QianFeng@123',
|
||||
-> master_auto_position=1;
|
||||
|
|
Loading…
Reference in New Issue