go-mysql-org / go-mysql-elasticsearch

Sync MySQL data into elasticsearch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

数据同步遇到问题

dashixiongsk opened this issue · comments

commented

[2019/10/22 18:48:03] [error] canal.go:213 canal dump mysql err: exit status 3
[2019/10/22 18:48:03] [error] river.go:299 start canal err exit status 3

遇到同样的问题
mysqldump: Couldn't execute 'SET SQL_QUOTE_SHOW_CREATE=1/*!40102 ,SQL_MODE=concat(@@sql_mode, _utf8 ',NO_KEY_OPTIONS,NO_TABLE_OPTIONS,NO_FIELD_OPTIONS') */': Variable 'sql_mode' can't be set to the value of 'NO_KEY_OPTIONS' (1231)
2020-03-25T07:50:51.707941937Z [2020/03/25 07:50:51] [error] canal.go:224 canal dump mysql err: exit status 2
2020-03-25T07:50:51.70794891Z [2020/03/25 07:50:51] [error] river.go:297 start canal err exit status 2

mysql 服务器 8.0 客户端 5.7

commented

你可以看下是不是mysql的账号权限不够。 另外,我当时数据同步遇到问题的解决方式就是:1)、账号的权限问题 2)初始化的时候,数据量太大,配置文件的mysqldump时间太长断开的

@dashixiongsk 报错提示的'sql_mode' can't be set to the value of 'NO_KEY_OPTIONS' 不能设置NO_KEY_OPTIONS ,在想是不是客户端哪里有这个设置,有人遇到这个问题,怎么解决的

commented

@xnray 这个我没有遇到过,刚才查了下也没查到好的解决方案

升级下mysqldump至8.0.14后版本问题就可以解决, mysqldump --skip-create-options fails on MySQL 8.0 server