my2sql
my2sql copied to clipboard
解析MySQL binlog ,可以生成原始SQL、回滚SQL、去除主键的INSERT SQL等,也可以生成DML统计信息以及大事务分析信息。
events.go:87 order_manage column count 123 in binlog > in table structure 122, usually means DDL in the middle
-mode repl -work-type 2sql -start-datetime "2021-12-12 09:00:00" -stop-datetime "2021-12-12 09:20:00" -output-dir ./tmpdir [2021/12/12 11:37:24] [info] stats_process.go:166 start thread to analyze statistics from binlog [2021/12/12 11:37:24] [info] events.go:210 start thread to...
hi liuhr MySQL8.0版本配置文件中加入 default_authentication_plugin =mysql_native_password 后,mysql错误日志会一致打印lugin mysql_native_password reported: ''mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead' 可否对此问题进行修复。 建议在mysql配置文件中取消default_authentication_plugin =mysql_native_password ,在创建账号 create user时指定 with...
  如图所示,间隔对t表和t1表进行插入数据,共执行6次 解析此binlog文件,显示只有两条数据
但,救人一命胜造七级浮屠
有时候需要对binlog进行分析,定位问题,想要知道语句插入数据库时候的时间,没在参数列表中找到类似参数选项 像binlog2sql 中每条sql后面都会有该事务的完成时间
### 背景 源库一直insert数据,指定位点启动my2sql,停止源库写入,查看解析SQL情况; ### 执行命令 `./my2sql -user xxx -password 'xxx' -host xxx -port 3306 -mode repl -work-type 2sql -do-not-add-prifixDb -start-pos "7077788" -start-file "mysql-bin.000020" -output-dir /tmp/my2sql` ### 日志 会一直卡在这里,单数数据一直在解析中 [2023/04/25 17:30:35]...
数据库是用 mysql -S /tmp/mysql.socket连接的。 请问我想用 ./my2sql -socket /tmp/mysql.socket式连接,应该怎么设置
我先生成1000条数据,然后删除这1000条数据,删除的这1000条数据 pos点 354335 --- 430748,然后又生成1000条数据,rollback生成回滚语句的时候也会将最后生成的1000条数据回滚语句生成出来。-stop-pos就没有生效 语句: my2sql -user xxx-password xx -work-type rollback -start-file mysql-bin.000021 -start-pos 354335 -stop-file my sql-mysql-bin.000021 -stop-pos 430748--add-extraInfo -output-dir /tem/sql binlog_status.txt 信息 
context.go:575 Connect mysql failed Error 3159: Connections using insecure transport are prohibited while --require_secure_transport=ON. azure云安全问题需要开启ssl,服务器有安装证书,应该只需要指定ssl即可 请问再哪里指定ssl呢?