您现在的位置是:课程教程文章
mysql双机热备如何实现
2023-12-14 20:38课程教程文章 人已围观
说明
1、做两台机器的相互主从,把主从对调,然后再做一次。
2、实现步骤,获得主服务器,从服务器IP地址。保证主服务器和从服务器上的数据一致。创建主服务器帐户,并配置主从服务器。
服务器配置
服务器A配置:
log-bin=mysql-bin server-id=1 #双机热备需要添加 log-slave-updates sync_binlog=1 auto_increment_offset=1 auto_increment_increment=2
服务器B配置
log-bin=mysql-bin server-id=2 #双机热备需要添加 log-slave-updates sync_binlog=1 auto_increment_offset=1 auto_increment_increment=2
以上就是mysql双机热备的实现,希望对大家有所帮助。更多mysql学习指路:MySQL
推荐操作系统:windows7系统、mysql5.8、DELL G3电脑
课程教程:mysql双机热备如何实现上一篇:什么是SockS5代理
下一篇:没有了