mysqlbinlog --help翻译

>mysqlbinlog --help

mysqlbinlog Ver 3.4 for Linux at x86_64  ==> 在x86_64为Linux编写的mysqlbinlog版本3.4

Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.   => 版权所有(c) 2000、2018、Oracle及/或其关联公司。保留所有权利。

Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.    =>    甲骨文是甲骨文公司和/或其注册商标子公司。其他名称可能是其各自的商标的主人。

Dumps a MySQL binary log in a format usable for viewing or for piping to the mysql command line client.    =>    将MySQL二进制日志转储为可用于查看或管道传输的格式mysql命令行客户端。

Usage: mysqlbinlog [options] log-files    =>    用法:mysqlbinlog[选项]日志文件

--bind-address=name IP address to bind to. =>——绑定地址=要绑定的IP地址名称。

--character-sets-dir=name  Directory for character set files.  ——character-sets-dir =名字 字符集文件目录。

--raw => 需要- r。输出原始的binlog数据,而不是SQL语句,输出是日志文件。

-r, --result-file=name  直接输出到给定的文件。raw,这是a文件名的前缀。

扫描二维码关注公众号,回复: 4171411 查看本文章

# 提取指定的binlog日志  (参数需要用绝对路径)
mysqlbinlog /opt/data/APP01bin.000001
# 根据位置提取
mysqlbinlog --start-position="120" --stop-position="332" /opt/data/APP01bin.000001
# 根据开始结束时间提取
mysqlbinlog --start-datetime="2014-12-15 20:15:23" --stop-datetime="2014-12-15 20:30:23" /opt/data/APP01bin.000002 --result-file=extra02.sql
# 对多个binlog文件, 提取指定数据库, 并转换字符集
mysqlbinlog --database=test --set-charset=utf8 /opt/data/APP01bin.000001 /opt/data/APP01bin.000002 >test.sql
# 提取远程的binlog, 并输出到本地
mysqlbinlog -u someone -p -P3306 -h192.168.1.177 --read-from-remote-server -vv inst3606bin.000005 >row.sql

猜你喜欢

转载自blog.csdn.net/qq_38802291/article/details/83502834