1、mysqlbinlog之base64-output参数

--base64-output=value

This option determines when events should be displayed encoded as base-64 strings using BINLOG statements. The option has these permissible values (not case sensitive):

AUTO ("automatic") or UNSPEC ("unspecified") displays BINLOG statements automatically when necessary (that is, for format description events and row events). If no --base64-output option is given, the effect is the same as --base64-output=AUTO. NEVER causes BINLOG statements not to be displayed. mysqlbinlog exits with an error if a row event is found that must be displayed using BINLOG.DECODE-ROWS specifies to mysqlbinlog that you intend for row events to be decoded and displayed as commented SQL statements by also specifying the --verbose option. Like NEVER, DECODE-ROWS suppresses display of BINLOG statements, but unlike NEVER, it does not exit with an error if a row event is found.

以上描述对于binlog日志中的BINLOG部分,如果要过虑掉需要指定DECODE-ROWS 以及--verbose选项。

The

SQL statements produced by --verbose for row events are much more

readable than the corresponding BINLOG statements. However, they do not

correspond exactly to the original SQL statements that generated the

events. The following limitations apply:

--verbose选项可以获取更多的可读信息,但是并不是一个原始的SQL语句(类似的)。

· The original column names are lost and replaced by @N, where N is a column number.

· Character set information is not available in the binary log, which affects string column display:

There

is no distinction made between corresponding binary and nonbinary

string types (BINARY and CHAR,VARBINARY and VARCHAR, BLOB and TEXT). The

output uses a data type of STRING for fixed-length strings andVARSTRING

for variable-length strings.For multibyte character sets, the maximum

number of bytes per character is not present in the binary log, so the

length for string types is displayed in bytes rather than in characters.

For example, STRING(4) will be used as the data type for values from

either of these column types:

CHAR(4) CHARACTER SET latin1

CHAR(2) CHARACTER SET ucs2

Due

to the storage format for events of type UPDATE_ROWS_EVENT, UPDATE

statements are displayed with theWHERE clause preceding the SET clause.

Proper

interpretation of row events requires the information from the format

description event at the beginning of the binary log. Because

mysqlbinlog does not know in advance whether the rest of the log

contains row events, by default it displays the format description event

using a BINLOG statement in the initial part of the output.

If

the binary log is known not to contain any events requiring a BINLOG

statement (that is, no row events), the --base64-output=NEVER option can

be used to prevent this header from being written.

mysql 对部分表binlog_MySQL抑制binlog日志中的BINLOG部分的方法相关推荐

  1. mysql 对部分表binlog_MySQL抑制binlog日志中的binlog部分

    MySQL通过binlog来记录整个数据的变更过程,因此我们只要有MySQL的binlog日志即可完整的还原数据库.MySQL binlog日志记录有3种不同的方式,即:STATEMENT,MIXED ...

  2. binlog是什么?能做什么?Window下怎么开启binlog?怎么查看binlog日志?利用binlog日志恢复数据

    binlog是什么?能做什么?Window下怎么开启binlog?怎么查看binlog日志?利用binlog日志恢复数据 windows如何开启Binlog日志 文档来源 ##1.什么是Binlog日 ...

  3. 删除binlog mysql_mysql中删除binlog的方法?mysql中如何删除binlog?

    需求描述: 在mysql中如何删除binlog,因为随着数据库的运行,mysql中产生的binlog会越来越大,有可能把磁盘撑爆了,所以记录下删除 binlog的方法. 操作过程: 1.通过系统参数控 ...

  4. binlog日志_mysql的binlog日志的自动定时清理

    如果每次等到发现空间不足的时候才去手动删除日志文件,这种方式是很不理想的. 那么,我们就需要设置mysql,让它能自动清理日志文件. 编辑mysql的配置文件,设置expire_logs_days(m ...

  5. mysql 错误等级_Mysql5.7 的错误日志中最常见的note级别日志解释

    在使用mysql5.7的时候,发现了不少在mysql5.6上不曾见过的日志,级别为note, 作者梳理了一下,最常见的note日志以下三种,下面我们来逐个解释. 第一种,Aborted connect ...

  6. mysql note级别_Mysql5.7 的错误日志中最常见的note级别日志解释

    在使用mysql5.7的时候,发现了不少在mysql5.6上不曾见过的日志,级别为note, 最常见的note日志以下三种,下面我们来逐个解释. 第一种,Aborted connection . 如上 ...

  7. sql如何遍历几百万的表_SQL Server遍历表中记录的2种方法(使用表变量和游标)

    SQL Server遍历表一般都要用到游标,SQL Server中可以很容易的用游标实现循环,实现SQL Server遍历表中记录.本文将介绍利用使用表变量和游标实现数据库中表的遍历. 表变量来实现表 ...

  8. mysql查询动态表名的数据类型_Mysql中查询某个数据库中所有表的字段信息

    前言 有时候,需要在数据库中查询一些字段的具体信息,而这些字段又存在于不同的表中,那么我们如何来查询呢? 在每一个数据库链接的information_schema数据库中,存在这样一张表--COLUM ...

  9. MySQL之建表时[Err] 1050 - Table ‘users‘ already exists异常解决方法

    当执行MySQL新建表格table时: 例如: create table students( uid int not null auto_increment, uname varchar(30) no ...

最新文章

  1. 使用Python,OpenCV计算图像直方图(cv2.calcHist)
  2. mysql 5.7.17远端登陆_Mysql 5.7.17安装后登录mysql的教程
  3. linux mysql 编码修改,Linux下修改MySQL编码的方法
  4. 重庆工商大学c语言实验一答案,重庆工商大学嵌入式实验考试题目答案 - 副本.doc...
  5. 廖雪峰python学习笔记——函数式编程
  6. Unity3d 插值同步
  7. Javascript 构造endwith方法
  8. 微课|中学生可以这样学Python(2.1.2节):常量与变量
  9. Failed to create AppDomain 'xxx'. Exception has been Failed to create AppDomain
  10. 前景检测算法(八)--SACON算法
  11. mysql:字符串拼接
  12. ASP.NET中 Bin,App_Browser,App_code,App_Data,App_Theme 等文件
  13. Office Open XML 文档格式(转)
  14. unity 控制人物模型移动
  15. scrapy入门小案例--爬取电影天堂最新电影下载地址
  16. 解决报错Cannot connect to the Maven process. Try again later. If the problem persists, check the Maven
  17. 【问题】不能加载 MSCOMCTL.OCX(机房问题)
  18. 搭建Discuz论坛网站-最新版Discuz3.4
  19. 几种常见的提取关键词的算法(4)
  20. 推荐 :手把手教你用Python进行Web抓取(附代码)

热门文章

  1. 想要去阿里面试?你必须得跨过 JVM 这道坎!
  2. postgre 常用语法,如 group_concat用法
  3. 台3岁女童疑把玩风枪致死案疑点多 警方将调查厘清
  4. 在创建ArcGIS Server10.5的站点时,系统提示创建‘System/publishingToolsEX.GPServer’失败(转)...
  5. Linux命令(基础)
  6. DateTime 的24小时和12小时制
  7. android地图定位
  8. ios 部分string颜色_ios 设置字符串中某段字符的颜色
  9. rocketmq python 一个进程订阅多个topic_玩转不同业务场景,这些RabbitMQ特性会是得力助攻...
  10. Linux系统文件安全与权限