Skip to content
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

Add --defaults-file option to mysql/mysqldump #116

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

kitzberger
Copy link
Contributor

Sometimes it's not possible to place the .my.cnf file (containing the db password) into the users home folder on remote. So it'll be nice to specify a different location for that file.

The option mysql.mysqldump.options only works for mysqldump and not the mysql command that checks the db size and tablenames before syncing. Plus it doesn't add the --defaults-file option as first option which it needs to work properly.

So I introduced this option separately.

mblaschke added a commit to webdevops/go-sync that referenced this pull request Oct 3, 2017
Implement clitools feature “Add --defaults-file option to mysql/mysqldump“ webdevops/clitools#116
@mblaschke
Copy link
Member

Wouldn't it be better to have some general options? Of you need other switches/parameters this can be defined as mysqldump-opts or something like that?

PS: already implemented in this way in https://github.com/webdevops/go-sync :)

@kitzberger
Copy link
Contributor Author

@mblaschke sure. But, as I already mentioned, this parameter needs to be the first one in order to work, whereas the mysqldump.options adds the options to the end of the command.

mblaschke added a commit to webdevops/go-sync that referenced this pull request Nov 2, 2017
@josefglatz
Copy link
Member

@kitzberger can u review this PR?

@kitzberger
Copy link
Contributor Author

@josefglatz, what's the point in me reviewing the patch that I wrote? ;-)

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

Successfully merging this pull request may close these issues.

None yet

3 participants