grunt-deployments icon indicating copy to clipboard operation
grunt-deployments copied to clipboard

Do not store Password warning in db dump

Open dbernar1 opened this issue 11 years ago • 7 comments

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.

dbernar1 avatar Feb 22 '14 22:02 dbernar1

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!

getdave avatar Feb 24 '14 09:02 getdave

Sure thing.

Would the user provide the callback inside the options section?

dbernar1 avatar Feb 24 '14 13:02 dbernar1

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

getdave avatar Feb 24 '14 16:02 getdave

@dbernar1 Thanks for your quick fix !

@getdave Will you merge this anytime soon ?

nicooprat avatar Jun 19 '14 12:06 nicooprat

@nicooprat You're most welcome :O)

dbernar1 avatar Jun 19 '14 19:06 dbernar1

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

getdave avatar Jun 30 '14 11:06 getdave

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!

dbernar1 avatar Jun 30 '14 13:06 dbernar1