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

Do not store Password warning in db dump #38

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

Conversation

dbernar1
Copy link

Hello,

Thanks for sharing your software. I use mysql56 from homebrew on a Mac, and when dumping local db
"Warning: Using a password on the command line interface can be insecure." is added to the dump file, and then import fails. The way I've solved it here is obviously not fancy, but it does the trick for me.

Let me know if you need any help with merging this in or testing other use cases if you don't have access to an environment where you can reproduce this.

@getdave
Copy link
Owner

getdave commented Feb 24, 2014

Thanks for reporting this, it's much appreciated.

I'd be cautious of merging your fix as it looks like it's solving the symptom rather than than cause of the issue.

Perhaps a better fix would be to provide the user with the option to provide a call back function to enable them to run other custom tasks once the DUMP has completed. Then items such as this additional replace could be added without having to roll them into the main script.

I'd be interested in hearing your thoughts and would love to see a pull request!

Much appreciated!

@dbernar1
Copy link
Author

Sure thing.

Would the user provide the callback inside the options section?

@getdave
Copy link
Owner

getdave commented Feb 24, 2014

Sounds like a good idea. Haven't investigated if there's already a established convention for this in the Node/Grunt community though...

@nicooprat
Copy link

@dbernar1 Thanks for your quick fix !

@getdave Will you merge this anytime soon ?

@dbernar1
Copy link
Author

@nicooprat You're most welcome :O)

@getdave
Copy link
Owner

getdave commented Jun 30, 2014

@dbernar1 This is awesome. Thanks so much. Could you poss resubmit into the develop branch?

@dbernar1
Copy link
Author

Hey Dave,

Sure, I've created #50. Let me know if you had something else in mind.

I'm curious - how come you changed your mind?

Thanks!

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 this pull request may close these issues.

3 participants