mysqlreplication
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mysqlreplication [2019/02/19 11:37] – z0hpvk | mysqlreplication [2025/03/08 22:24] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== MySQL Replication ===== | ===== MySQL Replication ===== | ||
| + | |||
| + | < | ||
| + | 192.168.56.102 | ||
| + | 192.168.56.103 | ||
| + | </ | ||
| + | |||
| + | ==== Set Server ID on Slave ==== | ||
| + | < | ||
| + | set persist server_id = 2; | ||
| + | |||
| + | service mysql restart | ||
| + | systemctl restart mysql | ||
| + | </ | ||
| ==== Create Replication User on Master ==== | ==== Create Replication User on Master ==== | ||
| < | < | ||
| - | create user ' | + | create user ' |
| grant replication slave on *.* to ' | grant replication slave on *.* to ' | ||
| </ | </ | ||
| Line 34: | Line 47: | ||
| | | ||
| | | ||
| - | | + | |
| | | ||
| | | ||
mysqlreplication.1550576240.txt.gz · Last modified: (external edit)
