代码拉取完成,页面将自动刷新
同步操作将从 mo-shan/analysis_binlog 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
分析binlog
root /data/git/analysis_binlog/bin >> bash analysis_binlog -h
Usage: analysis_binlog [OPTION]...
--type=value or -t=value The value=detail | simple | null
For example: --type=detail,-t=detail,-t=simple,-t=simple,
The "detail": The results displayed are more detailed, but also take more time.
The "simple": The results shown are simple, but save time
The default value is "simple".
--binlog-dir or -bdir Specify a directory for the binlog dir.
For example: --binlog-dir=/mysql_binlog_dir,-bdir=/mysql_binlog_dir
If the input is a relative path, it will be automatically modified to an absolute path.
The default value is "Current path".
--binlog-file or -bfile Specify a file for the binlog file, multiple files separated by ",".
For example: --binlog-file=/path/mysql_binlog_file,-bfile=/path/mysql_binlog_file
--b-file=/path/mysql_binlog_file1,/path/mysql_binlog_file1
If the input is a relative path, it will be automatically modified to an absolute path.
If this parameter is used, the "--binlog-dir or -bdir" parameter will be invalid.
--sort or -s Sort the results for "INSERT | UPDATE | DELETE"
The value=insert | update | delete
The default value is "insert".
--threads or -w Decompress/compress the number of concurrent. For example:--threads=8
This parameter works only when there are multiple files.
The default value is "1".
--help or -h Display this help and exit.
使用例子:
bash analysis_binlog -bfile=/data/mysql/binlog/3306/mysql-bin.000798,/data/mysql/binlog/3306/mysql-bin.000799 -w=2 -t=simple -s=update
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。