MySQL主从复制有异步模式、半同步模式、GTID模式以及多源复制模式,MySQL默认模式是异步模式。所谓异步模式,是指MySQL主服务器上I/O thread 线程将二进制日志写入binlog文件之后就返回客户端结果,不会考虑二进制日志是否完整传输到从服务器以及是否完整存放到从服务器上的relay日志中,这种模式一旦主服务(器)宕机,数据就会发生丢失。

环境:

1 [root@localhost ~]# cat /etc/redhat-release
2 CentOS Linux release 7.2.1511 (Core)
3 [root@localhost ~]# uname -a
4 Linux localhost.localdomain 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
5 [root@localhost ~]# 
View Code

相关文章:

  • 2021-07-10
  • 2021-07-29
  • 2022-01-08
  • 2021-12-23
  • 2021-09-05
  • 2022-12-23
  • 2021-08-19
  • 2021-07-25
猜你喜欢
  • 2021-12-21
  • 2021-04-17
  • 2021-11-01
  • 2021-12-08
  • 2022-12-23
  • 2021-05-03
相关资源
相似解决方案