Skip to content

dump don't work anymore "exit status 7?" #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
remotejob opened this issue Apr 30, 2018 · 8 comments · Fixed by #942
Closed

dump don't work anymore "exit status 7?" #264

remotejob opened this issue Apr 30, 2018 · 8 comments · Fixed by #942
Labels

Comments

@remotejob
Copy link

remotejob commented Apr 30, 2018

After last update "canal/dump" don't work anymore :(

time="2018-04-30T04:45:43Z" level=info msg="try dump MySQL and parse"

exit status 7 ???

@remotejob remotejob changed the title dump don't work any more "exit status 7?" dump don't work anymore "exit status 7?" Apr 30, 2018
@remotejob
Copy link
Author

Ok. I find issue it's mysqdump from mariadb don't work.

In my case I use docker alpine small image instead of complete ubuntu:16.04 but package mysql-client created from mariadb! (default now)

RUN apk add --no-cache --virtual mysql-client

It will be nice to have option use as well mysqdump from mariaDB.

Thanks.

@siddontang
Copy link
Collaborator

Hi @remotejob

Do you mean if you use MariaDB mysqldump, it can't work with MySQL?

@remotejob
Copy link
Author

Yes. Probably it's not issue at all?

@siddontang
Copy link
Collaborator

can we use MySQL mysqldump for MariaDB? If yes, we can change it.

@remotejob
Copy link
Author

I only test mysqldump(mariadb) -----> MYSQL for me it don't work.

I don't test mysqldump(mysql) -------> MariaDB

@siddontang
Copy link
Collaborator

maybe we should support two Dockerfiles, one is for MySQL mysqldump, and the other is for MariaDB.

@remotejob
Copy link
Author

If take in consideration mysqldump have the same name as for mysql as well for Mariadb.

I will do:

cfg.Dump.ExecutionPath = "mysqldump"

cfg.Dump.DbKind ="mysql/mariadb..."

But It's up to you.

@siddontang
Copy link
Collaborator

In the replication mode, there is a Flavor configuration, using it we can send different commands for MySQL/MariaDB, but for mysqldump, nearly they use the same flags, hard to distinguish.

Maybe we can add a comment in the dump for this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants