binlog是二进制日志文件,用于记录mysql的数据变更,数据在恢复的时候binlog日志能起到很大的作用。mysql的主从复制就是利用的binlog原理1、登录mysql之后使用下面的命令查看是否开启binlogshow variables like 'log_%';2、编辑配置文件vi /etc/my...
主库binlog:# at 2420#170809 17:16:20 server id 1882073306 end_log_pos 2451 CRC32 0x58f2db87Xid = 32880COMMIT/*!*/;# at 2451#170814 11:07:18 server id 1882073306 end_log_pos 2528 CRC32 0x40774a4bQuery thread_id=92 exec_time=0 error..