Closed jwongz closed 5 years ago
what's downstream mysql version, can you try the create table sql directly in you downstream mysql. it's ok i using v2.1.4 drainer for me and downstream is tidb
2019/07/03 22:42:18 syncer.go:503: ^[[0;37m[info] [ddl][start]use `test`; CREATE TABLE films (
id int(11),
release_year int(11),
category_id int(11),
rating decimal(3,2)
);[commit ts]409512165583093766^[[0m
2019/07/03 22:42:18 syncer.go:299: ^[[0;37m[info] [write save point]409512165583093766^[[0m
2019/07/03 22:42:18 syncer.go:512: ^[[0;37m[info] [ddl][end]use `test`; CREATE TABLE films (
id int(11),
release_year int(11),
category_id int(11),
rating decimal(3,2)
);[commit ts]409512165583093766^[[0m
2019/07/03 22:42:23 syncer.go:299: ^[[0;37m[info] [write save point]409512166920552449^[[0m
2019/07/03 22:42:26 syncer.go:299: ^[[0;37m[info] [write save point]409512167706984449^[[0m
2019/07/03 22:42:32 syncer.go:299: ^[[0;37m[info] [write save point]409512169293742081^[[0m
what's downstream mysql version, can you try the create table sql directly in you downstream mysql. it's ok i using v2.1.4 drainer for me and downstream is tidb
2019/07/03 22:42:18 syncer.go:503: ^[[0;37m[info] [ddl][start]use `test`; CREATE TABLE films ( id int(11), release_year int(11), category_id int(11), rating decimal(3,2) );[commit ts]409512165583093766^[[0m 2019/07/03 22:42:18 syncer.go:299: ^[[0;37m[info] [write save point]409512165583093766^[[0m 2019/07/03 22:42:18 syncer.go:512: ^[[0;37m[info] [ddl][end]use `test`; CREATE TABLE films ( id int(11), release_year int(11), category_id int(11), rating decimal(3,2) );[commit ts]409512165583093766^[[0m 2019/07/03 22:42:23 syncer.go:299: ^[[0;37m[info] [write save point]409512166920552449^[[0m 2019/07/03 22:42:26 syncer.go:299: ^[[0;37m[info] [write save point]409512167706984449^[[0m 2019/07/03 22:42:32 syncer.go:299: ^[[0;37m[info] [write save point]409512169293742081^[[0m
syncer.to is proxysql and tidb
why your log don't have "\n“?
you can run this sql in you proxysql:
use `test`; CREATE TABLE films (
id int(11),
release_year int(11),
category_id int(11),
rating decimal(3,2)
);
i think the proxy don't support this. I have beed dispaly in multiline for \n, should be same as you log
yeah, this issue is look like the same with https://github.com/pingcap/tidb/issues/8784
can you try using the drainer version from here http://download.pingcap.org/tidb-binlog-cluster-latest-linux-amd64.tar.gz, 3.0, it will execute use <db>
first then execute the DDL in the same session, i think the proxysql you use will support this?
can you try using the drainer version from here http://download.pingcap.org/tidb-binlog-cluster-latest-linux-amd64.tar.gz, 3.0, it will execute
use <db>
first then execute the DDL in the same session, i think the proxysql you use will support this?
thanks,I will try it
fixed in version3.0
version:v2.1.4 syncer.to mysql(is a TiDB)
sql:
error log :
and the docker whitch include drainer restart agen and agen