[MySQL binlog]mysql如何徹底解析Mixed日志格式的binlog
更新時間:2014年02月20日 17:12:23 作者:
這篇文章主要介紹了mysql徹底解析Mixed日志格式的binlog,需要的朋友可以參考下
mysql binlog3種格式,row,mixed,statement. 解析工作
mysqlbinlog --base64-output=DECODE-ROWS -v mysql-bin.000144 |more
--base64-output=DECODE-ROWS: 會顯示出row模式帶來的sql變更。
-v :顯示statement模式帶來的sql語句
復(fù)制代碼 代碼如下:
[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
相關(guān)文章
MySQL啟動失敗之MySQL服務(wù)無法啟動的原因及解決
這篇文章主要介紹了MySQL啟動失敗之MySQL服務(wù)無法啟動的原因及解決,具有很好的參考價值,希望對大家有所幫助。如有錯誤或未考慮完全的地方,望不吝賜教2022-12-12
常用的SQL例句 數(shù)據(jù)庫開發(fā)所需知識
常用的SQL例句全部懂了,你的數(shù)據(jù)庫開發(fā)所需知識就夠用了2011-11-11
一文詳解MySQL數(shù)據(jù)庫索引優(yōu)化的過程
在MySQL數(shù)據(jù)庫中,索引是一種關(guān)鍵的組件,它可以大大提高查詢的效率,但是,當數(shù)據(jù)量增大或者查詢復(fù)雜度增加時,索引的選擇和優(yōu)化變得至關(guān)重要,本文將記錄MySQL數(shù)據(jù)庫索引優(yōu)化的過程,以幫助開發(fā)人員更好地理解和應(yīng)用索引優(yōu)化技巧2023-06-06
mysql創(chuàng)建數(shù)據(jù)庫,添加用戶,用戶授權(quán)實操方法
在本篇文章里小編給大家整理的是關(guān)于mysql創(chuàng)建數(shù)據(jù)庫,添加用戶,用戶授權(quán)實操方法相關(guān)知識點,需要的朋友們學習下。2019-10-10

