【 TiDB 使用环境】Poc
【 TiDB DM 版本】6.5.0
【复现路径】做过哪些操作出现的问题
【遇到的问题:问题现象及影响】使用DM升级MySQL5.7到8.0,全量模式同步正常,增量同步进行建表DDL下游MySQL8报sql_mode错误,关闭下游MySQL8 sql_mode也错误,如下:
“Message”: “startLocation: [position: (mysql-bin.000003, 237639569), gtid-set: 84c1354f-419e-11ee-af95-fa163ecab0ce:1-1513], endLocation: [position: (mysql-bin.000003, 237639640), gtid-set: 84c1354f-419e-11ee-af95-fa163ecab0ce:1-1513]: gen insert sqls failed, sourceTable: test
.repl5_8
, targetTable: test
.repl5_8
: failed to set default downstream sql_mode ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION in schema tracker”,
“RawCause”: “Error 1231: Variable ‘sql_mode’ can’t be set to the value of ‘NO_AUTO_CREATE_USER’”,
【资源配置】
【附件:截图/日志/监控】