mysql主从复制

如果是克隆的虚拟机需要修改server uuid,具体参考https://blog.csdn.net/pratise/article/details/80413198 https://blog.csdn.net/lxypeter521/article/details/81866115

配置过程参考这个https://www.cnblogs.com/gl-developer/p/6170423.html

但是创建用户最后使用

create user 'repl'@'%' identified by 'MyNewPass4!';
grant replication slave,replication client on *.* to 'repl'@'%';
flush privileges;

创建从服务直接用

change master to master_host='192.168.92.134',master_port=3306,master_user='repl',master_password='MyNewPass4!';

找不到链接地址了。

 

posted @ 2021-02-09 11:23  清风名曰  阅读(50)  评论(0)    收藏  举报