标签:
1
2
3
4
5
|
查看log文件:show binary logs, show master logs 重置log: reset master 删除部分日志: purge binary logs to ‘log_name‘ | ‘date‘ |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
mysql> show variables like ‘%format%‘ ; + --------------------------+-------------------+ | Variable_name | Value | + --------------------------+-------------------+ | binlog_format | ROW | [root@rhel131 tmp]# mysqlbinlog /tmp/1.000001 /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=1*/ ; /*!40019 SET @@session.max_insert_delayed_threads=0*/ ; /*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/ ; DELIMITER /*!*/ ; # at 4 #131018 23:31:26 server id 1 end_log_pos 120 CRC32 0x67b9d21f Start: binlog v 4, server v 5.6.13-log created 131018 23:31:26 at startup # Warning: this binlog is either in use or was not closed properly. ROLLBACK /*!*/ ; BINLOG ‘ TlRhUg8BAAAAdAAAAHgAAAABAAQANS42LjEzLWxvZwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAABOVGFSEzgNAAgAEgAEBAQEEgAAXAAEGggAAAAICAgCAAAACgoKGRkAAR/S uWc= ‘ /*!*/ ; DELIMITER ; # End of log file ROLLBACK /* added by mysqlbinlog */ ; /*!50003 SET COMPLETION_TYPE=@OLD_COMPLETION_TYPE*/ ; /*!50530 SET @@SESSION.PSEUDO_SLAVE_MODE=0*/ ; |
标签:
原文地址:http://www.cnblogs.com/duanxz/p/5099991.html