4. Configure the Replica’s MySQL server
Copy the my.cnf file from the Source to the Replica:
$ scp user@Source:/etc/mysql/my.cnf /etc/mysql/my.cnf and change the following options in /etc/mysql/my.cnf:
server-id=2
我的源是 Almalinux 9,副本是 Ubuntu。将配置文件从源复制到副本会弄乱副本 mysql。
我们如何让它发挥作用?