[MySQL binlog]mysql如何彻底解析Mixed日志格式的binlog
时间:2024-01-16 23:34:05
mysql binlog3种格式,row,mixed,statement. 解析工作
mysqlbinlog --base64-output=DECODE-ROWS -v mysql-bin.000144 |more
--base64-output=DECODE-ROWS: 会显示出row模式带来的sql变更。
-v :显示statement模式带来的sql语句
[mysql@002tmp]$ mysqlbinlog --base64-output=DECODE-ROWS -v mysql-bin.000144 |more
/*!40019 SET @@session.max_insert_delayed_threads=0*/;
/*!50003 SET @OLD_COMPLETION_TYPE=@@COMPLETION_TYPE,COMPLETION_TYPE=0*/;
DELIMITER /*!*/;
# at 4
#140216 23:59:26 server id 3 end_log_pos 107 Start: binlog v 4, server v 5.5.25a-log created 140216 23:59:26
# at 107
#140216 23:59:26 server id 1 end_log_pos 171 Query thread_id=8557964 exec_time=0 error_code=0
SET TIMESTAMP=1392595166/*!*/;
SET @@session.pseudo_thread_id=8557964/*!*/;
SET @@session.foreign_key_checks=1, @@session.sql_auto_is_null=0, @@session.unique_checks=1, @@session.autocommit=1/*!*/;
SET @@session.sql_mode=6291456/*!*/;
SET @@session.auto_increment_increment=2, @@session.auto_increment_offset=1/*!*/;
/*!\C utf8mb4 *//*!*/;
SET @@session.character_set_client=45,@@session.collation_connection=45,@@session.collation_server=33/*!*/;
SET @@session.lc_time_names=0/*!*/;
SET @@session.collation_database=DEFAULT/*!*/;
BEGIN
/*!*/;
# at 171
# at 260
#140216 23:59:26 server id 1 end_log_pos 260 Table_map: `billing`.`billing_account` mapped to number 216
#140216 23:59:26 server id 1 end_log_pos 418 Write_rows: table id 216 flags: STMT_END_F
### INSERT INTO billing.billing_account
### SET
### @1=80491
### @2=1000013580491
### @3=1000056980491
### @4=1
### @5=1
### @6='Integration-Tests'
### @7=2014-02-16 23:59:26
### @8='Integration-Tests'
### @9=2014-02-16 23:59:26
### @10='Integration-Tests'
### @11=NULL
### @12='0'
### @13=1000105380491
### @14='0'
### @15='159.153.208.254'
### @16=1
### @17=NULL
# at 418
# at 516
#140216 23:59:26 server id 1 end_log_pos 516 Table_map: `billing`.`credit_card_account` mapped to number 222
#140216 23:59:26 server id 1 end_log_pos 812 Write_rows: table id 222 flags: STMT_END_F
### INSERT INTO billing.credit_card_account
### SET
标签:MySQL,binlog,Mixed
0
投稿
猜你喜欢
MySQL 生成随机数字、字符串、日期、验证码及 UUID的方法
2024-01-22 02:50:00
对Python 检查文件名是否规范的实例详解
2021-11-13 02:04:23
SQL Join的一些总结(实例)
2012-08-21 10:19:29
Python递归函数实例讲解
2022-12-01 14:54:56
php 读取文件头判断文件类型的实现代码
2023-11-15 09:50:06
python 操作sqlite数据库的方法
2024-01-26 04:18:43
python列表的常用操作方法小结
2023-06-21 16:14:34
详解Python垃圾回收机制和常量池的验证
2022-12-28 09:58:29
Python 数据分析之Beautiful Soup 提取页面信息
2022-04-30 04:34:10
golang gorm 结构体的表字段缺省值设置方式
2024-04-28 09:13:53
python如何统计序列中元素
2022-03-04 16:32:16
python3 tkinter实现点击一个按钮跳出另一个窗口的方法
2023-10-27 01:19:11
深入SQL Cursor基本用法的详细介绍
2024-01-12 22:05:06
MySQL explain获取查询指令信息原理及实例
2024-01-22 15:25:54
8种用Python实现线性回归的方法对比详解
2022-03-28 08:41:15
Asp编写不再让人讨厌的自动弹出窗口
2007-09-29 12:16:00
centos7 + php7 lamp全套最新版本配置及mongodb和redis教程详解
2024-05-22 10:08:46
Python运算符重载的简单实例代码
2021-02-13 11:21:22
python保存字典数据到csv文件的完整代码
2023-04-09 17:02:02
在https页面中使用iframe出现安全警告的解决方法
2009-03-04 12:01:00