Merge lp:~xavier+ubuntu/mydumper/mydumper into lp:mydumper
Status: | Needs review |
---|---|
Proposed branch: | lp:~xavier+ubuntu/mydumper/mydumper |
Merge into: | lp:mydumper |
Diff against target: |
166 lines (+49/-0) 5 files modified
common.h (+2/-0) docs/mydumper_usage.rst (+5/-0) docs/myloader_usage.rst (+5/-0) mydumper.c (+20/-0) myloader.c (+17/-0) |
To merge this branch: | bzr merge lp:~xavier+ubuntu/mydumper/mydumper |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Max Bubenick | Pending | ||
Review via email: mp+253344@code.launchpad.net |
Description of the change
A few months ago, I needed to specify the wait_timeout parameter when loading a database (mydumper enforces it but myloader does not). That day, I simply patched and recompiled myloader so it works for me and took note that I should report a fix for that issue.
Initially, I wanted to implement a --wait-timeout option but it quickly occurred to me that it would be more practical to enable users to insert their own SQL statements after connection to database is established. That is why I have implemented a --init-command switch, which can be used to insert one or several custom commands before mydumper and myloader actually perform their job.
Example: myloader -o -h mysqlserver -u me -p $password -B dbname -d dbname/ \
Unmerged revisions
- 171. By Xavier G. <email address hidden>
-
Add the "--init-command" option.