xelabs / go-mydumper

A multi-threaded MySQL backup and restore tool, faster than mysqldump

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

syntax error when start mydumper

unclesamwk opened this issue · comments

commented

Hey,

i build mydumper in official golang1.9 docker container with no failures etc.
When ich start mydumper i got an failure:

./bin/mydumper: line 1: syntax error near unexpected token `newline'
./bin/mydumper: line 1: `!<arch>'```

myloader works successfully.

Any idea?

greetings
Sam
commented

Hello,

Thank you for reporting the issue.
Fixed with commit 5882e69, please try again.

commented

It works! Thank you

Another question:
It will be useful, build static binaries for 386 and x86/amd64.

I dont now, how it implemented.
restic backup do it very well ...

greetings sam

commented

@unclesamwk

If I understand your question correctly, you're asking the golang's cross compling:
https://golang.org/doc/install/source#environment

commented

Yes, the result in bin is an 386 binary

commented

Ok, the answer is go-mydumper is implemented in purge go 💃

commented

Can you please explain your answer and what it means ... thx

commented

@unclesamwk

Sorry, I am not familiar with the rules of go compiler, it hard to explain in a sentence or two.